/* Contact page */
:root {
    --contact-orange: #f7931d;
    --contact-deep-orange: #f07900;
    --contact-brown: #5b2200;
    --contact-brown-dark: #3a1300;
    --contact-ivory: #fff2d8;
}

.contact-hero {
    padding: 56px 0 32px;
    background: #fff;
}

.contact-hero__wrapper {
    width: 1650px;
    margin: 0 auto;
}

.contact-hero__pill {
    background: #FA8C16;
    color: #FFFFFF;
    border-radius: 56px;
    padding: 48px clamp(24px, 6vw, 72px);
    text-align: left;
    box-shadow: 0 20px 40px rgba(240, 121, 0, 0.3);
}

.contact-hero__eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-hero__title {
    font-size: 64px;
    font-weight: 900;
    margin: 0;
    line-height: 1.5;
}

.contact-form-section {
    background: var(--contact-brown);
    padding: clamp(48px, 8vw, 96px) 0 120px;
    color: #fff;
}

.contact-form__wrapper {
    width: min(1080px, 94%);
    margin: 0 auto;
}

.contact-form__header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form__eyebrow {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-form__title {
    font-size: 64px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    color: #FA8C16;
}

.contact-form__description {
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

.contact-form__link {
    color: #FA8C16;
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
}

.contact-form__link:hover {
    text-decoration: underline;
}

.contact-form {
    /* background: rgba(0, 0, 0, 0.12); */
    /* border-radius: 32px; */
    padding: 0;
    /* box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); */
}

.contact-form__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-form__label-text {
    width: 150px;
    min-width: 150px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.contact-form__badge {
    background: #FFA940;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    align-self: flex-start;
}

.contact-form__field {
    flex: 1;
    min-width: 0;
}

.hidden-visually {
    visibility: hidden !important;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 95%;
    border: none;
    border-radius: 12px;
    background: var(--contact-ivory);
    padding: 16px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--contact-brown-dark);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form__field--radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form__radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-form__contact-input {
    width: 100%;
    margin-top: 8px;
}

.contact-form__contact-input input {
    width: 95%;
    border: none;
    border-radius: 12px;
    background: var(--contact-ivory);
    padding: 16px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--contact-brown-dark);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
}

.contact-form__contact-input input:focus {
    outline: 3px solid rgba(247, 147, 29, 0.35);
}

.contact-form__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-form__radio input {
    accent-color: var(--contact-orange);
    width: 16px;
    height: 16px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: 3px solid rgba(247, 147, 29, 0.35);
}

.contact-form__actions {
    margin-top: 40px;
    text-align: center;
}

.contact-form__submit {
    border: none;
    border-radius: 999px;
    padding: 16px 60px;
    background: var(--contact-orange);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form__submit:hover {
    background: var(--contact-deep-orange);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.contact-form__submit:active {
    transform: translateY(0);
}

/* Contact success section */
.contact-success-section {
    background: #F6FFED;
    padding: 120px 0;
}

.contact-success__wrapper {
    width: 1024px;
    margin: 0 auto;
}

.contact-success__title {
    color: #389E0D;
}

.contact-success__icon {
    display: block;
    margin: 0 auto 40px;
    width: 180px;
    height: 180px;
}

.captcha-error {
    color: #cc0000;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    border-radius: 4px;
}

.captcha-error.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}


/* Contact form alert messages */
.contact-alert {
    padding: 16px 40px 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in;
    position: relative;
}

.contact-alert.contact-alert-closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.contact-alert-error {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    color: #cc0000;
}

.contact-alert-success {
    background-color: #e6f7e6;
    border: 1px solid #00cc00;
    color: #006600;
}

.contact-alert p {
    margin: 0;
    font-weight: 500;
}

.contact-alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-alert-close:hover {
    opacity: 1;
}

.contact-alert-error .contact-alert-close {
    color: #cc0000;
}

.contact-alert-success .contact-alert-close {
    color: #006600;
}


@media (max-width: 900px) {
    .contact-form__row {
        flex-wrap: wrap;
    }

    .contact-form__label-text {
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    /* Contact Hero Section Mobile - Hidden per Figma design */
    .contact-hero {
        display: none;
    }

    /* Hide breadcrumb on contact page for mobile */
    .contact-section-breadcrumb-container {
        display: none;
    }

    /* Contact Form Section Mobile */
    .contact-form-section {
        background: #612500;
        padding: 48px 24px;
        overflow-x: hidden;
    }

    .contact-form__wrapper {
        width: 100%;
        overflow: hidden;
    }

    .contact-form__header {
        margin-bottom: 24px;
    }

    .contact-form__title {
        font-size: 32px;
        font-weight: 400;
        line-height: 1.4;
        color: #FA8C16;
        font-family: 'Noto Sans JP', sans-serif;
    }

    .contact-form__description {
        margin: 16px 0 0;
        font-size: 14px;
        line-height: 1.6;
    }

    /* Contact Form Grid Mobile - Row Layout */
    .contact-form__grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* Form Row Container Mobile */
    .contact-form__row {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: flex-start;
    }

    .contact-form__label-text {
        width: 112px;
        min-width: 112px;
        flex-shrink: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: -0.176px;
        color: #FFFFFF;
        font-family: 'Noto Sans JP', sans-serif;
    }

    .contact-form__badge {
        background: #FFA940;
        color: #FFF7E6;
        border-radius: 8.358px;
        padding: 8px;
        font-size: 12px;
        font-weight: 700;
        line-height: 16.717px;
        text-align: center;
        white-space: nowrap;
        font-family: 'Noto Sans JP', sans-serif;
        flex-shrink: 0;
        align-self: flex-start;
    }

    /* Hidden label mobile */
    .hidden-visually {
        display: none !important;
    }

    /* Input Fields Mobile */
    .contact-form__field {
        flex: 1;
        min-width: 0;
    }

    .contact-form__field input,
    .contact-form__field textarea {
        width: 100%;
        background: #FFF7E6;
        border: none;
        border-radius: 8px;
        padding: 12px 18px;
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
        color: #3a1300;
        line-height: 24px;
        box-sizing: border-box;
        box-shadow: none;
    }

    .contact-form__field input::placeholder,
    .contact-form__field textarea::placeholder {
        color: #B0B0B0;
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
    }

    .contact-form__field input[name="name"] {
        min-height: 83px;
    }

    .contact-form__field textarea {
        min-height: 191px;
        resize: vertical;
    }

    /* Radio Group Mobile */
    .contact-form__field--radio-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .contact-form__radio-options {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact-form__radio {
        display: flex;
        align-items: center;
        gap: 16px;
        background: transparent;
        border-radius: 0;
        padding: 0;
        cursor: pointer;
    }

    .contact-form__radio input[type="radio"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #C1C1C1;
        border-radius: 99px;
        background: white;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        padding: 9px;
    }

    .contact-form__radio input[type="radio"]:checked {
        border-color: #E87B37;
    }

    .contact-form__radio input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        background: #E87B37;
        border-radius: 99px;
    }

    .contact-form__radio span {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #FFFFFF;
        white-space: nowrap;
        font-family: 'Noto Sans JP', sans-serif;
    }

    /* Contact input field below radio */
    .contact-form__contact-input {
        width: 100%;
        margin-top: 0;
    }

    .contact-form__contact-input input {
        width: 100%;
        background: #FFF7E6;
        border: none;
        border-radius: 8px;
        padding: 12px 18px;
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
        color: #3a1300;
        line-height: 24px;
        box-sizing: border-box;
        box-shadow: none;
        min-height: 68px;
    }

    .contact-form__contact-input input::placeholder {
        color: #B0B0B0;
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
    }

    /* ReCAPTCHA Mobile */
    .recaptcha-label {
        font-size: 16px;
        color: #FFFFFF;
        font-family: 'Noto Sans JP', sans-serif;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
    }

    /* Submit Button Mobile */
    .contact-form__actions {
        margin-top: 32px;
    }

    .contact-form__submit {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
    }

    /* Alert Messages Mobile */
    .contact-alert {
        padding: 12px 32px 12px 16px;
        font-size: 13px;
        margin-bottom: 18px;
    }

    .contact-alert-close {
        top: 4px;
        right: 4px;
        font-size: 20px;
    }

    .captcha-error {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Contact Success Section Mobile */
    .contact-success-section {
        background: #F6FFED;
        padding: 96px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .contact-success-section .contact-form__wrapper {
        width: 100%;
        max-width: 900px;
    }

    .contact-success-section .contact-form__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
        margin-bottom: 0;
    }

    .contact-success__icon {
        width: 180px;
        height: 180px;
        margin: 0;
    }

    .contact-success-section .contact-form__title.contact-success__title {
        font-size: 48px;
        font-weight: 400;
        line-height: 1.2;
        color: #389E0D;
        text-align: center;
        font-family: 'Noto Sans JP', sans-serif;
    }
}

