/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

:root {
    --primary: #32cea6;
    --primary-dark: #34b0ab;
    --success: #44d199;
    --success-dark: #34b07f;
    --text-primary: #0F172A;
    --text-secondary: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-lighter: #FAFBFC;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 4px 12px rgba(50, 206, 166, 0.3);
    --shadow-green-lg: 0 8px 24px rgba(50, 206, 166, 0.35);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(231deg, #5ae4c1, #32cea6, #34b0ab, #34b07f, #44d199);
    background-size: 1000% 1000%;
    -webkit-animation: AnimationName 30s ease infinite;
    -moz-animation: AnimationName 30s ease infinite;
    animation: AnimationName 30s ease infinite;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

@-webkit-keyframes AnimationName {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
@keyframes AnimationName {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    width: 100%;
}

@media (max-width: 1440px) {
    .container {
        padding: 0 80px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 30px;
    height: 30px;
    color: var(--primary);
    stroke-width: 2;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-lang {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.btn-nav {
    background: linear-gradient(135deg, #5ae4c1 0%, #32cea6 50%, #44d199 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 48px;
    touch-action: manipulation;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50, 206, 166, 0.35);
}

.btn-nav:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding: 80px 120px;
}

#phone-section {
    scroll-margin-top: 120px;
}

.hero-headline {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
}

.hero-subline {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Form Card */
.form-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.94) 100%);
    backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 52px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 920px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 36px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

/* Phone Field */
.phone-field {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0;
    height: 60px;
    gap: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.phone-prefix {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 16px 0 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    white-space: nowrap;
}

.phone-prefix-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 14px 0 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    white-space: nowrap;
}

.flag-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    stroke-width: 2;
    flex-shrink: 0;
}

.flag-spain-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFC400;
    background: #C60B1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.phone-prefix span,
.phone-prefix-mobile span {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    margin: 0 0 0 5px;
}

.flag-icon-spain {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.phone-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    padding: 0 20px;
    font-weight: 500;
}

.phone-input::placeholder {
    color: var(--text-light);
}

.phone-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.phone-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auto-detect {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 14px;
    display: block;
}

.auto-detect-message {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
    margin-top: 10px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.operator-btn.auto-detected {
    border: 2px solid var(--success);
    box-shadow: 0 0 0 4px rgba(50, 206, 166, 0.2);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* User Info */
.user-info-row {
    display: flex;
    gap: 18px;
}

.input-group {
    flex: 1;
}

/* Desktop input with icon */
.input-group .input-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0 20px;
    height: 60px;
    min-height: 60px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group .input-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.input-group .form-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    height: 100%;
}

.input-group .form-input::placeholder {
    color: var(--text-light);
}

.input-group .form-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.input-group .input-with-icon:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Legacy form-input styles for backward compatibility */
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 16px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile User Info */
.user-info-row-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group-mobile {
    width: 100%;
}

    .input-with-icon {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-white);
        border: 1.5px solid var(--border);
        border-radius: 14px;
        padding: 0 20px;
        height: 60px;
        min-height: 60px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        width: 100%;
        transition: border-color 0.2s ease;
    }

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.form-input-mobile {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
}

.form-input-mobile::placeholder {
    color: var(--text-light);
}

.form-input-mobile:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.input-with-icon:focus-within {
    border-color: var(--primary);
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

/* Operators Grid */
.operators-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.operator-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.operator-btn {
    flex: 1;
    height: 125px;
    border: none;
    background: transparent;
    border-radius: 18px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.operator-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 0;
}

.operator-btn:hover::before {
    opacity: 1;
}

.operator-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.operator-btn:active {
    transform: translateY(0);
}

.operator-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.operator-btn.active {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.operator-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Amounts Grid */
.amounts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.amount-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.amount-btn {
    flex: 1;
    height: 90px;
    border: 1.5px solid var(--border);
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    border-radius: 18px;
    font-size: 19px;
    font-weight: 600;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px;
    box-sizing: border-box;
    min-width: 0;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #32cea6;
    background: linear-gradient(180deg, rgba(90, 228, 193, 0.1) 0%, rgba(50, 206, 166, 0.05) 100%);
}

.amount-btn:active {
    transform: translateY(0);
}

.amount-btn.active {
    background: linear-gradient(135deg, #5ae4c1 0%, #32cea6 50%, #44d199 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

.amount-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.amount-badge {
    font-size: 10px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
}

/* Checkout Section */
.checkout-section {
    padding-top: 28px;
}

.checkout-divider {
    height: 1.5px;
    background: #E5E7EB;
    margin-bottom: 20px;
}

.checkout-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.checkout-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 14px;
}

.checkout-label {
    color: var(--text-muted);
    font-weight: 500;
}

.checkout-value {
    color: var(--text-primary);
    font-weight: 700;
}

.checkout-total-line {
    padding: 3px 0;
}

.checkout-label-total {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 16px;
}

.checkout-total {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 22px;
}

/* Pay Button */
.btn-pay {
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, #5ae4c1 0%, #32cea6 50%, #44d199 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: var(--shadow-green-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-bottom: 20px;
    touch-action: manipulation;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pay-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(50, 206, 166, 0.4);
}

.btn-pay:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-pay:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.payment-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-right: 4px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
}

.payment-icon.stripe {
    color: #635BFF;
    font-size: 22px;
}

.payment-icon.visa {
    color: #1434CB;
    font-size: 24px;
}

.payment-icon.mastercard {
    color: #EB001B;
    font-size: 24px;
}

.payment-icon.amex {
    color: #006FCF;
    font-size: 24px;
}

/* Terms Section */
.terms-section {
    padding: 24px 0;
}

.terms-checkbox-label {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.terms-checkbox-label:focus-within .terms-check-icon {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.terms-check-icon {
    width: 22px;
    height: 22px;
    border: 1.5px solid #CBD5E1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--bg-white);
    transition: all 0.2s;
}

.terms-check-icon i,
.terms-check-icon svg {
    width: 16px;
    height: 16px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    display: block;
}

.terms-checkbox:checked + .terms-check-icon {
    background: var(--success);
    border-color: var(--success);
}

.terms-checkbox:checked + .terms-check-icon i,
.terms-checkbox:checked + .terms-check-icon svg {
    opacity: 1;
}

/* Mobile checkbox is checked by default */
.mobile-only .terms-check-icon {
    background: var(--success);
    border-color: var(--success);
}

.mobile-only .terms-check-icon i,
.mobile-only .terms-check-icon svg {
    opacity: 1;
}

.terms-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    min-width: 0;
    font-weight: 400;
}

/* Trust Section */
.trust-section {
    background: var(--bg-white);
    padding: 80px 120px;
}

.trust-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-value {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #5ae4c1 0%, #32cea6 50%, #44d199 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
    stroke-width: 2;
}

.star-icon {
    width: 22px;
    height: 22px;
    color: #FBBF24;
    fill: #FBBF24;
    stroke-width: 0;
}

.trust-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-stars {
    display: flex;
    gap: 6px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Improve touch targets */
    button,
    a,
    input[type="checkbox"],
    .operator-btn,
    .amount-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header-content {
        height: 64px;
        padding: 0;
        max-width: 100%;
    }

    .logo-image {
        height: 150px;
        width: auto;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav {
        display: none;
    }

    .btn-nav {
        display: none;
    }

    .btn-nav-mobile {
        background: linear-gradient(135deg, #5ae4c1 0%, #32cea6 50%, #44d199 100%);
        color: white;
        border: none;
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: var(--shadow-green);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        touch-action: manipulation;
        min-height: 44px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .btn-nav-mobile .btn-nav-icon {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }

    .btn-nav-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(50, 206, 166, 0.35);
    }

    .btn-nav-mobile:active {
        transform: translateY(0);
    }

    #phone-section {
        scroll-margin-top: 80px;
    }

    .hero {
        padding: 32px 0 40px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-headline {
        font-size: 32px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 12px;
        color: #FFFFFF;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: block;
        padding: 0 4px;
        letter-spacing: -0.3px;
    }

    .hero-subline {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        margin-bottom: 28px;
        color: #FFFFFF;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        opacity: 0.95;
        display: block;
        padding: 0 4px;
    }

    .form-card {
        padding: 24px 16px;
        border-radius: 20px;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0;
    }

    .form-section {
        margin-bottom: 0;
    }

    .form-section:not(:last-child) {
        margin-bottom: 24px;
    }

    .form-section.user-info {
        margin-bottom: 24px;
    }

    .form-label {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        color: var(--text-primary);
        display: block;
        letter-spacing: 0.3px;
    }

    .phone-field {
        height: 56px;
        padding: 0;
        gap: 0;
        display: flex;
        align-items: center;
        border-width: 1.5px;
    }

    .phone-prefix-mobile {
        padding: 0 12px 0 10px;
        gap: 8px;
        font-size: 15px;
    }

    .phone-divider {
        height: 28px;
    }

    .phone-input {
        font-size: 16px;
        flex: 1;
        min-width: 0;
        padding: 0 16px;
    }

    .phone-input:focus {
        outline: none;
    }

    .auto-detect {
        display: block !important;
        font-size: 12px;
        margin-top: 10px;
    }

    .auto-detect-message {
        font-size: 12px;
        margin-top: 8px;
    }

    .section-title {
        font-size: 17px;
        font-weight: 800;
        margin-bottom: 18px;
        letter-spacing: 0.4px;
        color: var(--text-primary);
        display: block;
    }

    /* Mobile Operators - 3 per row */
    .operators-grid {
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .operator-row {
        display: flex;
        gap: 8px;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    .operator-row .operator-btn {
        flex: 0 0 calc((100% - 16px) / 3);
        width: calc((100% - 16px) / 3);
        height: 100px;
        padding: 10px 8px;
        min-width: 0;
        max-width: calc((100% - 16px) / 3);
        box-sizing: border-box;
        border-radius: 14px;
        min-height: 100px;
    }

    .operator-row .operator-btn img {
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 15px;
    }

    /* Last row with fewer items */
    .operator-row:last-child .operator-btn {
        flex: 0 0 calc((100% - 16px) / 3);
    }

    /* Mobile Amounts - 2 per row with proper wrapping */
    .amounts-grid {
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .amount-row {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .amount-row .amount-btn {
        flex: 0 0 calc(50% - 4px);
        width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        height: 68px;
        font-size: 16px;
        padding: 12px 8px;
        min-width: 0;
        box-sizing: border-box;
        border-radius: 14px;
        min-height: 68px;
        margin-bottom: 0;
        overflow: hidden;
    }

    .amount-row .amount-btn .amount-value {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
    }

    .amount-row .amount-btn .amount-badge {
        font-size: 9px;
        padding: 3px 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure buttons don't overflow and wrap properly */
    .amount-row .amount-btn:last-child,
    .amount-row .amount-btn:nth-child(even) {
        margin-right: 0;
    }

    .checkout-section {
        padding-top: 24px;
    }

    .checkout-title {
        font-size: 18px;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .checkout-details {
        gap: 14px;
    }

    .checkout-line {
        padding: 3px 0;
        font-size: 14px;
    }

    .checkout-label-total {
        font-size: 16px;
    }

    .checkout-total {
        font-size: 20px;
    }

    .btn-pay {
        height: 56px;
        font-size: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
        min-height: 56px;
    }

    .btn-pay-icon {
        width: 18px;
        height: 18px;
    }

    .payment-icons {
        gap: 10px;
        padding: 18px 0;
        flex-wrap: wrap;
    }

    .payment-text {
        font-size: 12px;
    }

    .payment-icon {
        font-size: 20px;
    }

    .payment-icon.stripe {
        font-size: 18px;
    }

    .payment-icon.visa {
        font-size: 20px;
    }

    .payment-icon.mastercard {
        font-size: 20px;
    }

    .payment-icon.amex {
        font-size: 20px;
    }

    .terms-section {
        padding: 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .terms-checkbox-label {
        gap: 10px;
        align-items: flex-start;
        width: 100%;
        display: flex;
    }

    .terms-check-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .terms-check-icon svg {
        width: 14px;
        height: 14px;
        display: block;
        color: white;
    }

    .terms-check-icon i {
        width: 14px;
        height: 14px;
        display: block;
    }

    /* Ensure SVG icon is visible when checked on mobile */
    .terms-checkbox:checked + .terms-check-icon svg,
    .mobile-only .terms-check-icon svg {
        opacity: 1;
        color: white;
    }

    .terms-text {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.65;
        display: block !important;
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .terms-text.mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .terms-text.desktop-only {
        display: none !important;
    }

    .trust-section {
        padding: 48px 16px;
    }

    .trust-stats {
        flex-direction: column;
        gap: 28px;
    }

    .trust-value {
        font-size: 32px;
        font-weight: 800;
        display: block;
    }

    .trust-icon {
        width: 28px;
        height: 28px;
    }

    .trust-label {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 500;
        display: block;
    }

    .trust-stars {
        gap: 4px;
    }

    .star-icon {
        width: 18px;
        height: 18px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Ensure terms text is visible on mobile */
    .terms-text.mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .header-content {
        padding: 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-headline {
        font-size: 52px;
        max-width: 720px;
    }

    .hero-subline {
        font-size: 18px;
        max-width: 600px;
    }

    .form-card {
        padding: 44px;
        max-width: 720px;
    }

    .operator-row .operator-btn {
        height: 115px;
    }

    .amount-row .amount-btn {
        height: 88px;
    }

    .trust-section {
        padding: 64px 40px;
    }

    .trust-stats {
        gap: 80px;
    }

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-headline {
        font-size: 26px;
    }

    .hero-subline {
        font-size: 14px;
    }

    .form-card {
        padding: 20px 12px;
        border-radius: 18px;
    }

    .operator-row .operator-btn {
        height: 90px;
        padding: 8px 6px;
    }

    .amounts-grid {
        gap: 8px;
    }

    .amount-row {
        gap: 6px;
    }

    .amount-row .amount-btn {
        flex: 0 0 calc(50% - 3px);
        width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        height: 64px;
        font-size: 15px;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .amount-row .amount-btn .amount-value {
        font-size: 15px;
    }

    .btn-pay {
        height: 52px;
        font-size: 15px;
    }

    .btn-pay-icon {
        width: 17px;
        height: 17px;
    }

    .terms-section {
        padding: 16px 0;
    }

    .terms-checkbox-label {
        gap: 8px;
    }

    .terms-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .terms-check-icon {
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .terms-check-icon svg {
        width: 12px;
        height: 12px;
    }
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mobile-only {
    display: none;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Performance optimizations */
.form-card,
.operator-btn,
.amount-btn,
.btn-pay {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none;
    }
}

/* Print styles */
@media print {
    .header,
    .btn-pay,
    .btn-nav,
    .btn-nav-mobile,
    .payment-icons {
        display: none;
    }

    .form-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

