:root {
    --navy-950: #101d3a;
    --navy-900: #182b55;
    --navy-800: #243b70;
    --navy-700: #315395;
    --blue-100: #eaf0fb;
    --blue-50: #f5f8fd;
    --red-600: #df1f2d;
    --ink: #172033;
    --text: #4a566c;
    --muted: #6d788b;
    --line: #dce2eb;
    --line-strong: #c6cfdd;
    --surface: #ffffff;
    --surface-soft: #f3f5f8;
    --danger: #b4232f;
    --danger-soft: #fff1f2;
    --success: #147a52;
    --success-soft: #e9f8f1;
    --shadow: 0 22px 65px rgba(24, 43, 85, 0.10);
    --radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--navy-700);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--navy-950);
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 5;
    background: var(--surface);
    border-bottom: 1px solid rgba(36, 59, 112, 0.10);
}

.header-accent {
    height: 5px;
    background: linear-gradient(90deg, #171717 0 4.5%, var(--red-600) 4.5% 9%, var(--navy-800) 9% 100%);
}

.header-inner {
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: min(250px, 46vw);
    height: auto;
}

.language-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-picker label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-picker select {
    min-width: 150px;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--navy-900);
    background: var(--surface);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.language-picker select::-ms-expand,
.field select::-ms-expand {
    display: none;
}

.language-submit {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--navy-800);
    font-weight: 700;
    cursor: pointer;
}

.js .language-submit {
    display: none;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--navy-700);
    border-bottom: 2px solid var(--navy-700);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.select-wrap-compact::after {
    right: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% -15%, rgba(49, 83, 149, 0.17), transparent 34%),
        linear-gradient(135deg, #fff 0%, #f5f8fd 62%, #edf2fa 100%);
    border-bottom: 1px solid rgba(36, 59, 112, 0.08);
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -300px;
    border: 76px solid rgba(36, 59, 112, 0.045);
    border-radius: 50%;
}

.hero-inner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-block: 58px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.hero-copy > p:last-child {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--text);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-mark {
    flex: 0 0 170px;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(36, 59, 112, 0.16);
    border-radius: 50%;
    color: var(--navy-800);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 0 0 18px rgba(36, 59, 112, 0.035);
}

.hero-mark span {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.content-shell {
    padding-block: 56px 88px;
}

.required-note {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.rma-form {
    display: grid;
    gap: 24px;
}

.form-section,
.success-card,
.error-summary {
    border: 1px solid rgba(36, 59, 112, 0.10);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-section {
    padding: 38px 42px 42px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.section-number {
    flex: 0 0 auto;
    min-width: 48px;
    padding-top: 5px;
    color: var(--red-600);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.section-number::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 8px;
    background: var(--red-600);
}

.section-heading h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.field {
    min-width: 0;
}

.field-wide,
.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--navy-900);
    font-size: 0.91rem;
    font-weight: 700;
}

.field label span,
.privacy-row label > span {
    color: var(--red-600);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
    height: 52px;
    padding: 0 15px;
}

.field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.field textarea {
    min-height: 100px;
    padding: 13px 15px;
    resize: vertical;
}

.field-full textarea {
    min-height: 170px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #929bae;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #aeb9ca;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.language-picker select:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(49, 83, 149, 0.13);
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea,
.field-invalid.upload-panel {
    border-color: var(--danger);
    background: #fffafb;
}

.field-error {
    margin: 8px 0 0;
    color: var(--danger);
    font-size: 0.87rem;
    font-weight: 650;
}

.upload-panel {
    border: 1.5px dashed #aebad0;
    border-radius: 15px;
    padding: 24px;
    background: var(--blue-50);
    transition: border-color 160ms ease, background 160ms ease;
}

.upload-panel:focus-within,
.upload-panel:hover {
    border-color: var(--navy-700);
    background: var(--blue-100);
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.upload-input:focus + .upload-label {
    outline: 3px solid rgba(49, 83, 149, 0.20);
    outline-offset: 5px;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
}

.upload-symbol {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--navy-800);
}

.upload-symbol svg {
    width: 25px;
    height: 25px;
}

.upload-label strong,
.upload-label small {
    display: block;
}

.upload-label strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.upload-label small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.88rem;
}

.upload-status {
    margin: 15px 0 0 70px;
    color: var(--text);
    font-size: 0.87rem;
}

.privacy-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 2px 12px;
    align-items: start;
}

.privacy-row input {
    width: 21px;
    height: 21px;
    margin: 2px 0 0;
    accent-color: var(--navy-700);
}

.privacy-row label {
    color: var(--text);
}

.privacy-row .field-error {
    grid-column: 2;
}

.cost-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid #d6e0f1;
    border-radius: 14px;
    background: var(--blue-50);
}

.notice-mark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--navy-700);
    font-size: 0.9rem;
    font-weight: 800;
}

.cost-notice h3 {
    margin: 1px 0 5px;
    color: var(--navy-900);
    font-size: 0.98rem;
}

.cost-notice p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
}

.captcha-wrap {
    margin-top: 28px;
    min-height: 78px;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button-primary {
    color: #fff;
    background: var(--navy-800);
    box-shadow: 0 10px 24px rgba(36, 59, 112, 0.22);
}

.button-primary:hover {
    color: #fff;
    background: var(--navy-900);
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(49, 83, 149, 0.25);
    outline-offset: 3px;
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

.error-summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-color: #f2c8cd;
    background: var(--danger-soft);
    box-shadow: none;
}

.error-summary-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-weight: 850;
}

.error-summary h2 {
    margin: 1px 0 3px;
    color: #861b26;
    font-size: 1.08rem;
}

.error-summary p {
    margin: 0;
    color: #75343a;
}

.error-summary ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #75343a;
    font-size: 0.92rem;
}

.success-card {
    max-width: 790px;
    margin: 10px auto 0;
    padding: 64px 48px;
    text-align: center;
}

.success-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
    border-radius: 50%;
    color: var(--success);
    background: var(--success-soft);
}

.success-icon svg {
    width: 48px;
    height: 48px;
}

.success-card h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

.success-card > p:not(.eyebrow) {
    margin: 14px 0 30px;
    color: var(--text);
    font-size: 1.08rem;
}

.site-footer {
    color: #c8d0df;
    background: var(--navy-950);
}

.site-footer .shell {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 800px) {
    .shell {
        width: min(100% - 32px, 1180px);
    }

    .header-inner {
        min-height: 88px;
    }

    .language-picker label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .language-picker select {
        min-width: 136px;
    }

    .hero-inner {
        min-height: 250px;
        padding-block: 44px;
    }

    .hero-mark {
        display: none;
    }

    .content-shell {
        padding-block: 36px 64px;
    }

    .form-section {
        padding: 30px 28px 34px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 78px;
        gap: 14px;
    }

    .brand img {
        width: min(178px, 45vw);
    }

    .language-picker select {
        min-width: 118px;
        height: 42px;
        padding-left: 11px;
        font-size: 0.9rem;
    }

    .hero-inner {
        min-height: 218px;
        padding-block: 38px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .hero-copy > p:last-child {
        margin-top: 18px;
    }

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

    .field-wide,
    .field-full {
        grid-column: auto;
    }

    .form-section {
        padding: 26px 20px 28px;
        border-radius: 16px;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 25px;
    }

    .section-number {
        min-width: 40px;
    }

    .upload-panel {
        padding: 20px 16px;
    }

    .upload-label {
        align-items: flex-start;
        gap: 13px;
    }

    .upload-symbol {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .upload-status {
        margin-left: 57px;
    }

    .submit-row {
        justify-content: stretch;
    }

    .submit-row .button {
        width: 100%;
    }

    .error-summary {
        padding: 20px;
    }

    .success-card {
        padding: 44px 22px;
    }

    .site-footer .shell {
        min-height: 104px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
    }
}

@media (max-width: 370px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .brand img {
        width: 145px;
    }

    .language-picker select {
        min-width: 108px;
        width: 108px;
    }

    .g-recaptcha {
        width: 304px;
        height: 64px;
        transform: scale(0.80);
        transform-origin: left top;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
