/* 
 * ==========================================
 * Contact Page Styles
 * ==========================================
 */

.contact-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 0;
    background-color: #000;
    z-index: 0;
}

.contact-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.contact-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 82%;
    background: linear-gradient(transparent, rgb(0 0 0 / 50%));
    z-index: 1;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    /* Offset for header */
}

.contact-hero__title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0;
}

/* Contact Main Content */
.contact-section {
    position: relative;
    margin-top: 550px;
    z-index: 2;
    padding: 60px;
    background-color: #000;
    color: #fff;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #222;
    background-color: #050505;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 24px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Form Card */
.contact-form-card {
    position: relative;
    background-color: #080808;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    padding: 50px 40px;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    pointer-events: none;
    z-index: 0;
}

.contact-form-title {
    position: absolute;
    top: -5px;
    padding: 8px 23px 10px;
    left: 3px;
    background-color: #000;
    /* padding: 0 15px; */
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    z-index: 2;
    border-radius: 10px;
    /* Ensure it stays above both borders */
}

.contact-form-title::before {
content: '';
    position: absolute;
    top: -15px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 30px solid #000;
    border-left: 10px solid #000;
    border-right: 10px solid #000;
    transform: rotate(30deg);
    border-right: 16px solid #000000;
}
.contact-form-title::after {
   content: '';
    position: absolute;
    bottom: -11px;
    /* right: 0; */
    left: -48px;
    width: 0;
    height: 0;
    border-top: 39px solid #000000;
    border-left: 29px solid #000000;
    transform: rotate(40deg);
    border-right: 30px solid #000000;
    z-index: 99999;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
    /* Form stays above the pseudo-border */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.form-control,
.form-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .form-control,
    .form-select {
        font-size: 12px;
    }
}

input.form-control:focus, select.form-select:focus {
    border-color: #0099ff;
    box-shadow: none;
}

textarea.form-control:focus {
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

option {
    color: #000;
}

.roll-text-inner {
    font-weight: 500;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* .form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
} */

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' 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 16px center;
    padding-right: 40px;
}

.contact-submit-btn {
    background-color: #0033ff;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-self: center;
    /* Center the button */
    min-width: 160px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-submit-btn:hover {
    background-color: #0026e6;
    transform: scale(1.02);
}

/* Info Cards Stack */
.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: #080808;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    /* 30px - 4px */
    pointer-events: none;
    z-index: 0;
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 15px;
    z-index: 1;
    /* Content above border */
}

.contact-info-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    z-index: 1;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    z-index: 1;
}

.contact-info-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
    z-index: 1;
}

.contact-info-text a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: #fff;
}

/* Map Section */
.contact-map {
    width: 100%;
    background-color: #000;
    padding: 0px 24px 120px;
}

.contact-map iframe {
    width: 100%;
    height: 1825px;
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-hero {
        min-height: 400px;
    }

    .contact-hero__title {
        font-size: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Keep side-by-side as per image unless very small */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        margin-top: 510px;
        /* Consistent with global tablet banner margin */
        padding: 60px 20px;
    }

    .contact-hero {
        min-height: 300px;
    }

    .contact-hero__title {
        font-size: 60px;
    }

    .contact-header h2 {
        font-size: 38px;
        max-width: 100%;
    }

    .contact-form-card {
        padding: 40px 20px;
    }

    .contact-info-card {
        padding: 25px 20px;
    }
    .contact-map {
        padding: 0;
        padding-bottom: 100px;
    }
    .contact-map iframe {
        height: 400px;
        padding: 20px;
    }

    .contact-info-card {
        padding: 46px 79px;
        width: 300px;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .contact-section {
        margin-top: 345px;
        /* Consistent with global mobile banner margin */
        padding: 40px 15px;
    }

    .contact-hero {
        min-height: 250px;
    }

    .contact-hero__title {
        font-size: 40px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-badge {
        padding: 4px 12px;
        font-size: 11px;
        margin-bottom: 12px;
    }

    .contact-header h2 {
        font-size: 28px;
    }

    .contact-desc {
        font-size: 15px;
        line-height: 1.5;
    }

    .form-row {
        /* In the image 1 (mobile), they are still side-by-side! */
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .contact-form-card {
        padding: 30px 15px;
        border-radius: 30px;
    }

    .contact-form-card::before {
        inset: 6px;
        border-radius: 24px;
    }

    .contact-form-title {
        font-size: 13px;
        left: 3px;
    }

    .contact-info-card {
        border-radius: 20px;
        padding: 20px;
    }

    .contact-info-card::before {
        inset: 6px;
        border-radius: 14px;
    }

    .contact-info-header {
        gap: 10px;
        padding-bottom: 10px;
    }

    .contact-info-title {
        font-size: 16px;
    }

    .contact-info-text {
        font-size: 14px;
    }
}