/* ==============CONTACT PAGE STARTS============ */

/* HERO SECTION */

/* Image Showcase Section */
.image-showcase {
    position: relative;
    background: url('/images/town.png') center center/cover no-repeat;
    padding: 8rem 2rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -20px;
    background-attachment: fixed;
}

.image-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.3);
    z-index: 1;
}

.image-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .image-showcase {
        padding: 5rem 1.5rem;
        min-height: 40vh;
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .image-showcase {
        padding: 3rem 1rem;
        min-height: 30vh;
    }
}


/* CONTACT SECTION */
.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs effect */
.contact-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Contact Info Side */
.contact-info {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(243, 156, 18, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-badge:hover {
    background: rgba(243, 156, 18, 0.2);
    transform: scale(1.05);
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.5rem;
    font-family: 'Gabarito', sans-serif;
}

.contact-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.contact-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    transition: width 0.3s ease;
}

.contact-title:hover .contact-highlight::after {
    width: 100%;
}

.contact-description {
    color: #64748b;
    font-size: 0.85rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(243, 156, 18, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-bottom-color: rgba(243, 156, 18, 0.3);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #f39c12;
    transform: scale(1.05);
}

.contact-icon i {
    color: #f39c12;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: #0a192f;
}

.contact-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.2rem;
    font-family: 'Poppins', sans-serif;
}

.contact-text p {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

.contact-social a {
    width: 35px;
    height: 35px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f39c12;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social a:hover {
    background: #f39c12;
    color: #0a192f;
    transform: translateY(-3px) scale(1.1);
}

/* Contact Form Side */
.contact-form-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(243, 156, 18, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a192f;
    font-family: 'Poppins', sans-serif;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: 'Bai Jamjuree', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-weight: 400;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(243, 156, 18, 0.5);
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    background: #ffffff;
    transform: scale(1.01);
}

.form-group textarea {
    resize: vertical;
}

.full-width {
    grid-column: span 2;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.contact-submit-btn i {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form-box {
        order: 2;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .contact-info,
    .contact-form-box {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-item {
        gap: 0.8rem;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .contact-text h4 {
        font-size: 0.8rem;
    }
    
    .contact-text p {
        font-size: 0.75rem;
    }
}



/* CONTACT FORM JS */

/* Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.custom-modal-overlay.fade-out {
    animation: modalFadeOut 0.3s ease forwards;
}

.custom-modal {
    background: linear-gradient(135deg, #0a192f, #0d2240);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

.custom-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.custom-modal-icon.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.custom-modal-icon.success i {
    color: #2ecc71;
    font-size: 2rem;
}

.custom-modal-icon.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.custom-modal-icon.error i {
    color: #e74c3c;
    font-size: 2rem;
}

.custom-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Gabarito', sans-serif;
}

.custom-modal-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.custom-modal-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.custom-modal-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}