@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --ink: #1f2433;
    --muted: #65708a;
    --line: rgba(31, 36, 51, 0.12);
    --paper: #fffaf1;
    --card: rgba(255, 255, 255, 0.92);
    --violet: #5f4b8c;
    --violet-dark: #332650;
    --gold: #e8b84e;
    --aqua: #75d6c4;
    --rose: #f7d6c5;
    --success: #1f8f6a;
    --shadow: 0 24px 70px rgba(35, 25, 66, 0.2);
}

* {
    box-sizing: border-box;
}

body.pay-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 12% 15%, rgba(117, 214, 196, 0.35), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(232, 184, 78, 0.30), transparent 30%),
        linear-gradient(135deg, #f9efe0 0%, #f4f0ff 45%, #e9fbf7 100%);
    overflow-x: hidden;
}

.pay-shell {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100vh;
    padding: 34px 18px 54px;
}

.pay-shell::before,
.pay-shell::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
}

.pay-shell::before {
    width: 260px;
    height: 260px;
    right: -70px;
    top: 80px;
    background: rgba(95, 75, 140, 0.12);
}

.pay-shell::after {
    width: 340px;
    height: 340px;
    left: -110px;
    bottom: -120px;
    background: rgba(232, 184, 78, 0.18);
}

.top-brand {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 14px !important;
}

.top-brand img {
    display: block !important;
    width: 224px !important;
    max-width: 70vw !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
}

.pay-layout {
    display: block !important;
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin: 0 auto !important;
}

.hero-panel,
.form-panel,
.notice-card {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    min-height: 680px;
    padding: 34px;
    border-radius: 34px;
    overflow: hidden;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 168px;
    min-width: 168px;
    height: 96px;
    padding: 12px;
    border-radius: 28px;
    background: white;
    box-shadow: 0 14px 34px rgba(51, 38, 80, 0.12);
}

.brand-logo img {
    max-width: 144px;
    max-height: 76px;
}

.brand-kicker {
    margin: 0 0 4px;
    color: var(--violet);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-name {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    line-height: 1.05;
}

.hero-title {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--violet-dark);
}

.hero-copy {
    margin: 22px 0 28px;
    max-width: 520px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.trust-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.trust-dot {
    width: 12px;
    min-width: 12px;
    height: 12px;
    min-height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(31, 143, 106, 0.12);
}


.hero-panel .trust-list {
    margin-bottom: 12px;
}

.hero-panel .hero-ribbon {
    flex-shrink: 0;
}

.hero-ribbon {
    position: relative;
    margin-top: auto;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--violet-dark), var(--violet));
    color: white;
}

.hero-ribbon strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
}

.hero-ribbon span {
    color: rgba(255, 255, 255, 0.78);
}

.form-panel {
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 34px;
    padding: 28px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 10px 6px 24px;
    flex-wrap: wrap;
}

.form-header h1 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 2.35rem;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.form-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.secure-badge {
    display: none !important;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(31, 143, 106, 0.12);
    color: var(--success);
    font-weight: 800;
}

.modern-form {
    display: grid;
    gap: 16px;
}

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

.field {
    display: grid;
    gap: 18px;
}

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

.field label,
.check-card strong {
    font-weight: 800;
    color: #30364a;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field textarea {
    min-height: 104px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(95, 75, 140, 0.55);
    box-shadow: 0 0 0 5px rgba(95, 75, 140, 0.10);
    transform: translateY(-1px);
}

.amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.currency-chip {
    min-width: 76px;
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--violet-dark);
    color: white;
    font-weight: 800;
}

.notice-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    box-shadow: none;
    background: rgba(255, 250, 241, 0.76);
}

.notice-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.notice-card a {
    color: var(--violet);
    font-weight: 800;
    text-decoration: none;
}

.check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fffaf1;
}


.check-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--violet);
}

.check-card p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.btn-soft,
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-soft {
    background: rgba(95, 75, 140, 0.1);
    color: var(--violet-dark);
}

.btn-primary-modern {
    min-width: 190px;
    background: linear-gradient(135deg, var(--violet-dark), var(--violet));
    color: white;
    box-shadow: 0 16px 30px rgba(95, 75, 140, 0.25);
}

.payment-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    opacity: 0.65;
}

.payment-mark span {
    color: var(--muted);
    font-weight: 800;
}

.payment-mark img {
    height: 28px;
}

.cookie-panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    width: min(440px, calc(100vw - 44px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 55px rgba(31, 36, 51, 0.22);
    display: none;
}

.cookie-panel.is-visible {
    display: block;
}

.cookie-panel h2 {
    margin: 0 0 8px;
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
}

.cookie-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: var(--ink);
}

.cookie-option input {
    margin-top: 4px;
    accent-color: var(--violet);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cookie-actions button {
    min-height: 42px;
    border-radius: 999px;
    border: 0;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-save {
    background: var(--violet-dark);
    color: white;
}

.cookie-accept {
    background: var(--gold);
    color: #2e2308;
}

.cookie-minimal {
    background: rgba(31, 36, 51, 0.08);
    color: var(--ink);
}

.privacy-page .form-panel {
    max-width: 920px;
    margin: 0 auto;
}

.privacy-content {
    color: var(--muted);
    line-height: 1.7;
}

.privacy-content h2 {
    margin-top: 28px;
    color: var(--ink);
    font-family: 'Fraunces', serif;
}


@media (max-width: 1180px) {
    .hero-panel {
        min-height: auto;
    }

    .hero-ribbon {
        margin-top: 12px;
    }
}

@media (max-width: 960px) {
    .pay-layout {
        width: min(100%, 680px);
    }

    .hero-panel {
        position: relative;
        min-height: auto;
    }

    .hero-ribbon {
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .pay-shell {
        padding: 18px 12px 44px;
    }

    .top-brand {
        margin-bottom: 16px;
    }

    .hero-panel,
    .form-panel {
        padding: 20px;
        border-radius: 26px;
    }

    .brand-lockup,
    .form-header,
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-logo {
        width: 100%;
        min-width: 0;
    }

    .brand-logo img {
        max-width: 210px;
    }

    .field-grid,
    .amount-row {
        grid-template-columns: 1fr;
    }

    .secure-badge,
    .btn-soft,
    .btn-primary-modern {
        width: 100%;
    }
}


@media (max-height: 760px) {
    .hero-panel {
        position: relative;
        top: auto;
        min-height: auto;
    }
}

/* Mobile responsive fixes */
.form-header h1 {
    overflow-wrap: anywhere;
}

.check-card span {
    min-width: 0;
}

.btn-soft,
.btn-primary-modern {
    text-align: center;
}

@media (max-width: 640px) {
    .pay-shell {
        padding: 16px 10px 36px;
    }

    .hero-panel,
    .form-panel {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .form-header {
        padding: 6px 0 18px;
        gap: 10px;
    }

    .form-header h1 {
        font-size: 1.9rem;
        white-space: normal !important;
    }

    .form-header p,
    .notice-card p,
    .check-card strong {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .field {
        gap: 8px;
    }

    .field input,
    .field textarea,
    .field select {
        min-height: 50px;
        border-radius: 12px;
        padding: 12px 13px;
    }

    .notice-card,
    .check-card {
        padding: 14px;
        border-radius: 14px;
    }

    .check-card {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
    }

    .secure-badge,
    .btn-soft,
    .btn-primary-modern {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
    }

    .payment-mark {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cookie-panel {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-actions button {
        width: 100%;
        border-radius: 8px;
    }
}

@media (max-width: 380px) {
    .pay-shell {
        padding-inline: 8px;
    }

    .form-panel {
        padding: 16px 12px;
    }

    .form-header h1 {
        font-size: 1.7rem;
    }
}
