﻿/* ===== Base Styles ===== */
.contact-us-page {
    padding: 40px 20px;
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    margin-top: -20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header Styles ===== */
.contact-us-page h2 {
    text-align: center;
    color: #33477d;
    font-size: 2.5rem;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* ===== Split Section ===== */
.contact-split-section {
    margin: 50px 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: #33477d;
}

.contact-split-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.contact-split-text {
    flex: 1;
}

.contact-split-text p {
    font-weight: 400;
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-split-image {
    flex: 1;
}

.contact-split-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.contact-split-image img:hover {
    transform: scale(1.02);
}

.newsletter-section {
    font-family: 'Nunito', sans-serif;
    text-align: center;
    margin-top: 40px;
    background: linear-gradient(135deg, #33477d 0%, #008080 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

    .newsletter-section h2 {
        font-size: 36px;
        margin-bottom: 20px;
        font-weight: bold;
        color: white;
    }

    .newsletter-section > p {
        font-size: 20px;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.newsletter-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.benefit-item {
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .benefit-item:hover {
        transform: translateY(-5px);
        background-color: rgba(255, 255, 255, 0.2);
    }

    .benefit-item i {
        font-size: 24px;
        color: #ffffff;
        min-width: 30px;
    }

    .benefit-item p {
        font-size: 16px;
        margin: 0;
        text-align: left;
    }

.newsletter-cta {
    font-size: 18px;
    font-style: italic;
    margin: 30px 0 20px 0;
    opacity: 0.9;
}

.newsletter-btn {
    padding: 15px 30px;
    background-color: #ffffff;
    color: #33477d;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .newsletter-btn:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

@media (max-width: 1200px) {
    .newsletter-section {
        padding: 30px 20px;
    }

        .newsletter-section h2 {
            font-size: 28px;
        }

        .newsletter-section > p {
            font-size: 18px;
        }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

        .benefit-item p {
            text-align: center;
            font-size: 15px;
        }

    .newsletter-btn {
        font-size: 18px;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .newsletter-benefits {
        gap: 15px;
    }

    .benefit-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 15px;
    }

    .newsletter-section h2 {
        font-size: 24px;
    }

    .newsletter-section > p {
        font-size: 16px;
    }

    .newsletter-cta {
        font-size: 16px;
    }
}

/* ===== Form Styles ===== */
.contact-form-container {
    background: linear-gradient(135deg, #33477d 0%, #008080 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-container h3 {
    color: white;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
    margin-top: 0;
}

.form-section-title {
    margin: 40px 0 20px 0;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.form-section-title h3 {
    margin-bottom: 20px;
    margin-top: 0;
}

.optional {
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* ===== Newsletter Signup Styles ===== */
.newsletter-signup {
    margin-top: 20px;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-checkbox:checked {
    background: #007c7a;
    border-color: #007c7a;
}

.newsletter-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 122, 0.3);
}

.newsletter-label {
    color: white;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.newsletter-label:hover {
    color: #ccf2ef;
}

.contact-us-page form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

/* Ensure other role field displays properly when shown */
#otherRoleGroup {
    display: none;
    transition: all 0.3s ease;
}

#otherRoleGroup.show-field {
    display: block !important;
}

#otherRoleGroup.show-field label,
#otherRoleGroup.show-field input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override scroll animations for the dynamic other field */
#otherRoleGroup.show-field {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Radio button styling */
.radio-group {
    display: flex;
    gap: 40px;
    margin-top: 10px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.radio-option input[type="radio"]:checked {
    background: #33477d;
    border-color: #33477d;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 71, 125, 0.3);
}

.radio-option label {
    color: white;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.radio-option label:hover {
    color: #ccf2ef;
}

/* Alert styling */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-warning {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #c82333 !important;
}

/* More specific selector for the area alert */
#areaAlert.alert-warning {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #c82333 !important;
    background-image: none !important;
    background: #dc3545 !important;
}

/* Override any potential success styling */
#areaAlert.alert-warning.alert-success,
#areaAlert.alert.alert-warning {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #c82333 !important;
    background-image: none !important;
    background: #dc3545 !important;
}

.alert strong {
    font-weight: 600;
}

.contact-us-page label {
    display: block;
    font-weight: 600;
    color: white;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-us-page input[type="text"],
.contact-us-page input[type="email"],
.contact-us-page input[type="tel"],
.contact-us-page select,
.contact-us-page textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    font-family: "Nunito", sans-serif;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: 0;
}

.contact-us-page input[type="text"]:focus,
.contact-us-page input[type="email"]:focus,
.contact-us-page input[type="tel"]:focus,
.contact-us-page select:focus,
.contact-us-page textarea:focus {
    outline: none;
    border-color: #007c7a;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 124, 122, 0.1);
    transform: translateY(-2px);
}

.contact-us-page textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button-container {
    text-align: center;
    margin-top: 40px;
}

.contact-us-page button {
    background-color: #33477d;
    color: white;
    padding: 18px 40px;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 124, 122, 0.3);
    min-width: 180px;
}

.contact-us-page button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 124, 122, 0.4);
    background: linear-gradient(135deg, #025a59 0%, #007c7a 100%);
}

.contact-us-page button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 124, 122, 0.3);
}

/* ===== Success Message ===== */
.alert {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 5px solid #28a745;
    margin-top: 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* ===== Tablet Responsive (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .contact-us-page {
        padding: 30px 15px;
    }

    .contact-us-page h2 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .contact-split-section {
        padding: 30px;
        margin: 40px 0;
    }

    .contact-split-content {
        gap: 40px;
    }

    .contact-form-container {
        padding: 40px;
    }

    
}

/* ===== Mobile Responsive (768px and below) ===== */
@media (max-width: 768px) {
    .contact-us-page {
        padding: 20px 10px;
        background: #f8f9fa;
    }

    .container {
        padding: 0 10px;
    }

    .contact-us-page h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Split Section Mobile */
    .contact-split-section {
        padding: 25px 20px;
        margin: 30px 0;
        border-radius: 15px;
    }

    .contact-split-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .contact-split-text p {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 15px;
    }

    .contact-split-image img {
        height: 250px;
        border-radius: 12px;
    }

    /* Form Mobile */
    .contact-form-container {
        padding: 30px 25px;
        margin: 30px 0;
        border-radius: 15px;
        margin-bottom: 150px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .contact-us-page input[type="text"],
    .contact-us-page input[type="email"],
    .contact-us-page input[type="tel"],
    .contact-us-page select,
    .contact-us-page textarea {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .contact-us-page textarea {
        min-height: 100px;
    }


    .contact-us-page button {
        padding: 15px 35px;
        font-size: 1rem;
        border-radius: 40px;
        width: 100%;
        max-width: 280px;
    }

    .newsletter-label {
        font-size: 0.95rem;
    }

    .newsletter-checkbox {
        width: 16px;
        height: 16px;
    }

    .alert {
        padding: 15px 20px;
        margin-top: 25px;
        border-radius: 10px;
    }
    
    .radio-group {
        gap: 25px;
    }
    
    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    
    .radio-option input[type="radio"]:checked::after {
        width: 6px;
        height: 6px;
    }
    
    .radio-option label {
        font-size: 0.95rem;
    }
}

/* ===== Small Mobile (480px and below) ===== */
@media (max-width: 480px) {
    .contact-us-page {
        padding: 15px 5px;
    }

    .contact-us-page h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .contact-split-section {
        padding: 20px 15px;
        margin: 25px 0;
    }

    .contact-split-text p {
        font-size: 0.95rem;
    }

    .contact-form-container {
        padding: 25px 20px;
        margin: 25px 0;
        margin-bottom: 100px;
    }

    .contact-us-page input[type="text"],
    .contact-us-page input[type="email"],
    .contact-us-page input[type="tel"],
    .contact-us-page select,
    .contact-us-page textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .contact-us-page button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .newsletter-label {
        font-size: 0.9rem;
    }

    .newsletter-checkbox {
        width: 15px;
        height: 15px;
    }
    
    .radio-group {
        gap: 20px;
    }
    
    .radio-option input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .radio-option input[type="radio"]:checked::after {
        width: 5px;
        height: 5px;
    }
    
    .radio-option label {
        font-size: 0.9rem;
    }
}

/* ===== Large Desktop Optimization ===== */
@media (min-width: 1200px) {
    .contact-us-page {
        padding: 60px 40px;
    }

    .container {
        max-width: 1300px;
    }

    .contact-us-page h2 {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }

    .contact-split-section {
        padding: 60px;
        margin: 60px 0;
    }

    .contact-split-content {
        gap: 60px;
    }

    .contact-form-container {
        padding: 60px;
        max-width: 800px;
    }

    .form-row {
        gap: 30px;
    }

    .contact-us-page input[type="text"],
    .contact-us-page input[type="email"],
    .contact-us-page input[type="tel"],
    .contact-us-page select,
    .contact-us-page textarea {
        padding: 18px 24px;
        font-size: 1.1rem;
    }

    .contact-us-page button {
        padding: 20px 50px;
        font-size: 1.2rem;
    }
}
