/* Contact Form specific styles */
@font-face {
    font-family: 'Dream Avenue';
    src: url('../font/DreamAvenue.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.container {
    padding: 0 !important;
}

/* Contact container layout */
.contact-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Left Column – Text Info */
.contact-header {
    flex: 1;
    max-width: 45%;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: var(--color-text);
    line-height: 1.2;
}

.contact-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.contact-email {
    margin-top: 30px;
}

.contact-email a {
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.contact-email a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Map container styles */
.map-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.map-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.map-container p {
    margin-top: 15px;
}

/* Right Column – Form */
.contact-form-container {
    flex: 1;
    width: 50%;
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-group {
    width: 100%;
    box-sizing: border-box;
}

.contact-form input.form-control,
.contact-form textarea.form-control {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

/* Two fields side by side */
.form-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    margin-right: 0;
    margin-left: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(169, 117, 141, 0.1);
    background-color: var(--color-white);
    outline: none;
}

.form-control::placeholder {
    color: #888;
    font-size: 0.95rem;
}

.position-relative {
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #888;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
}

.char-counter-warning {
    color: #ff9900;
}

.char-counter-exceeded {
    color: #ff0000;
    font-weight: bold;
}

.message-area {
    padding-bottom: 30px !important;
}

/* Message textarea */
.message-area {
    resize: vertical;
    min-height: 140px;
    font-family: 'Poppins', sans-serif;
}

/* Submit button */
.submit-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background-color: var(--color-primary-dark);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Captcha box styling */
.captcha-container {
    margin-top: 15px;
}

.captcha-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.g-recaptcha {
    transform: scale(1);
    transform-origin: 0 0;
}

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .contact-header,
    .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
    
    .contact-header {
        margin-bottom: 0;
    }
    
    .contact-header h1 {
        font-size: 2.8rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 25px 15px;
        gap: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0px;
    }
    
    .contact-header h1 {
        font-size: 2.4rem;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 14px 0;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .contact-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .contact-header p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .contact-form-container {
        padding: 18px 15px;
    }
    
    .captcha-wrapper {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .message-area {
        min-height: 120px;
    }

    .contact-email a {
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .captcha-wrapper {
        transform: scale(0.75);
    }
    
    .contact-form-container {
        padding: 15px 12px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 0.95rem;
    }
}