/* ==========================================================================
   Contact Us (#contact-us) – Split layout, typeform-style form, 1604 Community
   ========================================================================== */
#contact-us {
    padding: 0;
    align-items: stretch;
    justify-content: flex-end;
}

#contact-us .contact-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: var(--vh-small, 100vh);
    overflow: hidden;
}

#contact-us .contact-visual {
    flex: 0 0 45%;
    min-width: 0;
    position: relative;
    border-radius: 0 290px 0 0;
    overflow: hidden;
}

/* Grayscale only the background image; overlay content stays in color */
#contact-us .contact-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(to left, rgba(17, 16, 14, 0.5) 12%, transparent 40%), url("../media/about-bg.webp");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    border-radius: inherit;
}

/* Community content overlaid on left visual (above grayscale layer) */
#contact-us .contact-community-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(to right, rgba(17, 16, 14, 0.75) 0%, rgba(17, 16, 14, 0.4) 50%, transparent 100%);
    border-radius: inherit;
    pointer-events: auto;
}

#contact-us .contact-community-overlay .contact-community-heading {
    background: linear-gradient(135deg, #F46C14, #ff9d5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.35rem;
}

#contact-us .contact-community-overlay .contact-community-intro {
    text-align: center;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

#contact-us .contact-community-overlay .contact-community-grid {
    max-width: 90%;
    width: 100%;
}

#contact-us .contact-panel {
    flex: 1;
    min-width: 0;
    background: rgba(17, 16, 14, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 290px 0 0 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
    padding-left: clamp(2rem, 5vw, 3.25rem);
    padding-right: max(clamp(1.5rem, 4vw, 2.5rem), 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

#contact-us .contact-form-column {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0.5rem;
}

#contact-us .contact-form-column .contact-heading,
#contact-us .contact-form-column .contact-intro {
    align-self: flex-start;
}

#contact-us .contact-form-column .contact-form-area {
    align-self: stretch;
    max-width: 420px;
    width: 100%;
}

/* Bordered card around form + progress (matches 1604 Community block style) */
#contact-us .contact-form-area {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(1rem, 1.5vw, 1.25rem);
    margin-top: 0.75rem;
}

#contact-us .contact-form-column .contact-heading,
#contact-us .contact-form-column .contact-intro {
    align-self: flex-start;
}
#contact-us .contact-panel::before {
    display: none;
}

#contact-us .contact-heading {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    color: #fff;
    margin: 0 0 clamp(0.5rem, 1vw, 0.75rem) 0;
    line-height: 1.25;
}

#contact-us .contact-heading-gradient {
    background: linear-gradient(135deg, #F46C14, #ff9d5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#contact-us .contact-intro {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: clamp(0.85rem, 1.05vw, 0.95rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 clamp(1rem, 1.5vw, 1.25rem) 0;
}

/* Typeform-style: one step visible at a time */
#contact-us .contact-typeform {
    position: relative;
    min-height: 120px;
}

#contact-us .contact-step {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

#contact-us .contact-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#contact-us .contact-field {
    width: 100%;
    margin-bottom: 0.65rem;
}

#contact-us .contact-field:last-of-type {
    margin-bottom: 0.5rem;
}

#contact-us .contact-step .contact-step-label,
#contact-us .contact-step .contact-input,
#contact-us .contact-step .contact-textarea,
#contact-us .contact-field {
    align-self: stretch;
}

#contact-us .contact-field .contact-input,
#contact-us .contact-field .contact-textarea {
    margin-bottom: 0;
}

#contact-us .contact-step-label {
    display: block;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #F46C14;
    margin-bottom: 0.5rem;
}

#contact-us .contact-input,
#contact-us .contact-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: var(--body-font);
    font-size: max(16px, 1rem);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#contact-us .contact-input::placeholder,
#contact-us .contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#contact-us .contact-input:focus,
#contact-us .contact-textarea:focus {
    outline: none;
    border-color: rgba(244, 108, 20, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

#contact-us .contact-input.contact-input-invalid,
#contact-us .contact-textarea.contact-input-invalid {
    border-color: rgba(255, 90, 90, 0.75);
}

#contact-us .contact-field-error {
    margin: 0.35rem 0 0.5rem;
    font-family: var(--body-font);
    font-size: 0.75rem;
    color: #ff8a8a;
    line-height: 1.35;
}

#contact-us .contact-textarea {
    resize: vertical;
    min-height: 80px;
}

#contact-us .contact-next-btn,
#contact-us .contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #F46C14, #e85a0a);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contact-us .contact-next-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#contact-us .contact-step-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

#contact-us .contact-back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#contact-us .contact-back-btn:hover {
    border-color: rgba(244, 108, 20, 0.7);
    background: rgba(244, 108, 20, 0.2);
    transform: translateY(-1px);
}

#contact-us .contact-back-btn svg {
    width: 22px;
    height: 22px;
}

#contact-us .contact-next-btn:hover {
    border-color: rgba(244, 108, 20, 0.7);
    background: rgba(244, 108, 20, 0.2);
    transform: translateY(-1px);
}

#contact-us .contact-next-btn svg {
    width: 22px;
    height: 22px;
}

#contact-us .contact-submit-btn {
    padding: 0.6rem 1.25rem;
    gap: 0.5rem;
}

#contact-us .contact-submit-btn .contact-submit-icon {
    flex-shrink: 0;
}

#contact-us .contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#contact-us .contact-submit-btn:hover {
    background: linear-gradient(135deg, #ff7d2e, #F46C14);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 108, 20, 0.35);
}

#contact-us .contact-form-footer {
    text-align: center;
    margin-top: 0.5rem;
}

#contact-us .contact-form-message {
    margin-top: 0.75rem;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    text-align: center;
}

#contact-us .contact-form-message.success {
    color: rgba(255, 255, 255, 0.9);
}

#contact-us .contact-form-message.error {
    color: #f87171;
}

#contact-us .contact-form-progress {
    font-family: var(--heading-font);
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0.75rem 0 0.5rem 0;
}

#contact-us .contact-form-progress .contact-step-current {
    color: #F46C14;
}

#contact-us .contact-legal {
    margin: clamp(1rem, 2vw, 1.5rem) 0 0;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

#contact-us .contact-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

#contact-us .contact-legal a:hover {
    color: #F46C14;
}

/* 1604 Community slide */
#contact-us .contact-socials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
}

#contact-us .contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    font-family: var(--body-font);
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#contact-us .contact-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 108, 20, 0.4);
    color: #fff;
}

#contact-us .contact-social-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#contact-us .contact-social-icon svg {
    display: block;
    vertical-align: middle;
}

/* 1604 Community slide – horizontal cards: one on top, one on bottom; content uses horizontal space */
#contact-us .contact-community-inner {
    max-width: 520px;
}

#contact-us .contact-community-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.25rem);
    margin-top: 1rem;
}

#contact-us .contact-community-block {
    /* background: rgba(255, 255, 255, 0.04); */
    /* backdrop-filter: blur(12px); */
    -webkit-backdrop-filter: blur(12px);
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    border-radius: 14px;
    padding: clamp(1rem, 1.5vw, 1.25rem);
    transition: border-color 0.2s ease, background 0.2s ease;
}

/* #contact-us .contact-community-block:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
} */

#contact-us .contact-block-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: #F46C14;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

#contact-us .contact-block-desc {
    font-family: var(--body-font);
    font-size: clamp(0.75rem, 0.95vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Follow us: social links use full width – equal columns */
#contact-us .contact-socials-block .contact-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0.25rem;
    gap: 0.5rem;
}

#contact-us .contact-socials-block .contact-social-link {
    padding: 0.6rem 0.5rem;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Account Services: Login + Sign Up side by side */
#contact-us .contact-account-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

#contact-us .contact-account-btn {
    flex: 1;
    min-width: 100px;
    display: block;
    text-align: center;
    padding: 0.55rem 1rem;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#contact-us .contact-account-login {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#contact-us .contact-account-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

#contact-us .contact-account-signup {
    background: linear-gradient(135deg, #F46C14, #e85a0a);
    color: #fff;
    border: none;
}

#contact-us .contact-account-signup:hover {
    background: linear-gradient(135deg, #ff7d2e, #F46C14);
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 108, 20, 0.35);
}

@media (max-width: 420px) {
    #contact-us .contact-socials-block .contact-socials {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }
    #contact-us .contact-account-actions {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    #contact-us .contact-wrapper {
        flex-direction: column;
    }
    #contact-us .contact-visual {
        min-height: auto;
        flex: 0 0 auto;
        border-radius: 0 80px 0 0;
    }
    #contact-us .contact-community-overlay {
        background: linear-gradient(to bottom, rgba(17, 16, 14, 0.5) 0%, rgba(17, 16, 14, 0.85) 100%);
        padding: 1rem;
    }
    #contact-us .contact-panel {
        flex: 1;
        min-width: 0;
        border-radius: 80px 0 0 0;
        padding: 1.25rem 1rem 1rem;
    }
    #contact-us .contact-panel::before {
        display: none;
    }
}

@media (max-width: 768px) {
    #contact-us .contact-wrapper {
        flex-direction: column;
    }
    #contact-us .contact-visual {
        min-height: auto;
    }
    #contact-us .contact-panel {
        padding: var(--space-3);
        padding-right: var(--space-3);
        overflow-y: auto;
    }
    #contact-us .contact-community-overlay .contact-community-grid {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    #contact-us .contact-intro,
    #contact-us .contact-step-label {
        font-size: 0.85rem;
    }
    #contact-us .contact-form-area {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    #contact-us .contact-panel {
        border-radius: 48px 0 0 0;
        padding: 1rem 0.75rem;
    }
    #contact-us .contact-visual {
        border-radius: 0 48px 0 0;
    }
}
