/* ! [Contact Page] CSS code starts here */

/* Section Layout */
.contact-section {
    padding: 80px 0 120px;
    position: relative;
    text-align: center;
}

.contact-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #000;
    /* Black title as per image */
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* 4-Card Layout */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: #fff;
    padding: 40px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensure equal height */
    justify-content: flex-start;
    /* Organize from top */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #e6f0f6;
    /* Very light blue bg for icon */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #00558C;
    /* Brand Navy Blue */
    font-size: 24px;

}

/* Fix Mirrored Phone Icon */
.card-icon .fa-phone-alt {
    transform: scaleX(-1);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.card-content a {
    display: block;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-content a:hover {
    color: var(--primary-color);
}

.card-content p {
    margin: 0;
}

/* ! [Form and Map] CSS code starts here */

/* Layout */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    align-items: stretch;
    /* Ensures equal height */
}

.contact-form-container,
.contact-map-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Align content to left */
}

.contact-form-container h2,
.contact-map-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.form-subtitle,
.map-subtitle {
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
    /* Reduced margin */
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

/* Inputs */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    /* Reduced padding for compact look */
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    /* Slightly smaller font */
    color: #333;
    transition: all 0.2s ease;
    background-color: #fcfcfc;
}

.form-group textarea {
    resize: none;
    height: 120px;
}

/* Select Dropdown */
.form-group select {
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    /* Focus color orange */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(249, 196, 36, 0.1);
}

/* Placeholder */
::placeholder {
    color: #999;
    opacity: 1;
}

.btn-submit-orange {
    background-color: var(--primary-color);
    /* Brand Color */
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    margin-top: auto;
    /* Pushes button to bottom if needed */
}

.btn-submit-orange:hover {
    background-color: var(--primary-hover);
}

/* Map */
.map-wrapper {
    flex-grow: 1;
    /* Fills remaining space */
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid #eee;
}

/* Validation */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease-in-out;
}

.error-border {
    border-color: #e74c3c !important;
    background-color: #fdf5f5 !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: #fff;
    border-left: 5px solid;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-color: #2ecc71;
}

.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-error {
    border-color: #e74c3c;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-icon {
    font-size: 24px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
    color: #333;
}

.toast-message {
    font-size: 14px;
    color: #666;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* ! [Form and Map] CSS code ends here */

/* ! [CTA Section] CSS code starts here */
.cta-section {
    background-color: #e8f4fd;
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
}

.cta-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
}

.cta-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta-primary {
    background-color: #1a5276;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-cta-primary:hover {
    background-color: #154360;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.2);
}

.btn-cta-outline {
    background-color: transparent;
    color: #1a5276;
    border: 2px solid #1a5276;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background-color: #1a5276;
    color: white;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.2);
}

/* ! [CTA Section] CSS code ends here */

/* ! [Contact Page] CSS code ends here */


/* ! Responsive CSS code starts here */

@media (max-width: 1024px) {

    /* ? [Contact Cards] Responsive CSS starts here */
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* ? [Contact Cards] Responsive CSS ends here */
}

@media (max-width: 900px) {

    /* ? [Form and Map] Responsive CSS starts here */
    .contact-content-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        min-height: 350px;
    }

    /* ? [Form and Map] Responsive CSS ends here */
}

@media (max-width: 768px) {

    /* ? [Form Layout] Responsive CSS starts here */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* ? [Form Layout] Responsive CSS ends here */

    /* ? [CTA Section] Responsive CSS starts here */
    .cta-header h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* ? [CTA Section] Responsive CSS ends here */
}

@media (max-width: 600px) {

    /* ? [Contact Cards Mobile] Responsive CSS starts here */
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    /* ? [Contact Cards Mobile] Responsive CSS ends here */
}

/* ! Responsive CSS code ends here */