/* CONTACT SECTION STYLES */

#contact {
    background: #0c0f14;
    color: white;
    padding-block: 10rem;
    padding-inline: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
    position: relative;
    overflow: hidden;
}

#contact .contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

#contact .contact-eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: #f64900;
    margin-bottom: 1.5rem;
}

#contact .contact-title {
    font-size: clamp(2.2rem, 3.5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

#contact .contact-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Form container */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.4rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #f64900;
    box-shadow: 0 0 0 3px rgba(246, 73, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Phone input specific styling */
.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.4rem;
    font-size: 0.95rem;
}

.iti__tel-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #f64900;
}

.iti__dropdown {
    background: #1a1f27;
    border-color: rgba(255, 255, 255, 0.1);
}

.iti__dropdown-content {
    background: #1a1f27;
    color: white;
}

.iti__list-item:hover,
.iti__list-item.iti__highlight {
    background: rgba(246, 73, 0, 0.2);
}

/* Submit button */
.form-submit {
    width: 100%;
    padding: 1rem;
    background: #f64900;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.form-submit:hover {
    background: #f64900;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(246, 73, 0, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

#contact form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form message */
.form-message {
    display: none;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.4rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

.form-message.error {
    display: block;
    background: rgba(246, 73, 0, 0.2);
    border: 1px solid #f64900;
    color: #f64900;
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #contact {
        padding-block: 4rem;
        padding-inline: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
    }

    /* Keep the main contact grid in normal document flow on mobile */
    #contact > div:first-child {
        width: 100%;
        height: auto;
        filter: none;
    }

    #contact > div:last-child {
        gap: 2rem;
    }

    #contact > div:last-child > div:first-child h2 {
        margin-bottom: 1rem;
        letter-spacing: 0.35em;
    }

    #contact > div:last-child > div:first-child h3 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 0.95;
        margin-bottom: 1rem;
    }

    #contact > div:last-child > div:first-child p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    #contact > div:last-child > div:first-child .space-y-10 {
        gap: 1.1rem;
    }

    #contact > div:last-child > div:first-child .space-y-10 > div a,
    #contact > div:last-child > div:first-child .space-y-10 > div p:last-child {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    #contact > div:last-child > div:first-child .space-y-10 > div:nth-child(2) a {
        display: block;
    }

    #contact > div:last-child > div:last-child > div {
        padding: 1rem;
        border-radius: 0.9rem;
    }

    #contact form {
        gap: 1.5rem;
    }

    #contact form > div:nth-of-type(1) {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #contact form > div:nth-of-type(1) > div:nth-child(4) > p {
        margin-bottom: 0.65rem;
        letter-spacing: 0.2em;
        font-size: 0.5rem;
    }

    #contact form > div:nth-of-type(1) > div:nth-child(4) > div {
        gap: 0.45rem;
    }

    #contact form > div:nth-of-type(1) > div:nth-child(4) > div > label {
        min-width: calc(50% - 0.225rem);
        flex: 1 1 calc(50% - 0.225rem);
    }

    #contact form > div:nth-of-type(1) > div:nth-child(4) > div > label > div {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #contact form input,
    #contact form textarea {
        font-size: 0.9rem;
    }

    #contact form textarea {
        min-height: 120px;
    }

    #contact form button[type="submit"] {
        padding-top: 1rem;
        padding-bottom: 1rem;
        font-size: 0.68rem;
        letter-spacing: 0.28em;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    #contact > div:last-child > div:first-child .space-y-10 > div a,
    #contact > div:last-child > div:first-child .space-y-10 > div p:last-child {
        font-size: 0.9rem;
    }

    #contact form > div:nth-of-type(1) > div:nth-child(4) > div > label {
        min-width: 100%;
        flex-basis: 100%;
    }

    #contact form button[type="submit"] {
        font-size: 0.62rem;
        letter-spacing: 0.2em;
    }
}


