/* ==========================================
   Premium Subscription Page Styles
   Symmetric, Minimal, Professional Design
   ========================================== */

/* Subscription Section */
.subscription-section {
    padding: 120px 20px 80px;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
    min-height: calc(100vh - 72px);
}

.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Subscription Card - Two Pane Layout */
.subscription-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
    min-height: 640px;
}

/* Left Pane - SVG Illustration */
.left-pane {
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 113, 227, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(52, 199, 89, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, #f8f9fa 0%, #eef0f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.left-pane::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 113, 227, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(52, 199, 89, 0.02) 0%, transparent 50%);
    animation: rotateBackground 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.illustration-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.subscription-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(0, 113, 227, 0.1));
    animation: floatSVG 6s ease-in-out infinite;
}

@keyframes floatSVG {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.subscription-svg .laptop {
    animation: tiltDevice 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes tiltDevice {

    0%,
    100% {
        transform: translate(0, -20px) rotateX(0deg);
    }

    50% {
        transform: translate(0, -20px) rotateX(2deg);
    }
}

.subscription-svg .smartphone {
    animation: pulseDevice 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulseDevice {

    0%,
    100% {
        transform: translate(80px, 15px) scale(1);
    }

    50% {
        transform: translate(80px, 15px) scale(1.05);
    }
}

.subscription-svg .shield {
    animation: shieldPulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: translate(0, 60px) scale(1);
    }

    50% {
        transform: translate(0, 60px) scale(1.1);
    }
}

.left-pane:hover .subscription-svg {
    filter: drop-shadow(0 16px 48px rgba(0, 113, 227, 0.2));
    transform: scale(1.02);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Right Pane - Symmetric Content Layout */
.right-pane {
    padding: 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
}

/* Step Content Management */
.step-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   STEP 1 - PLAN SELECTION
   ========================================== */

.plan-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eaed;
}

.plan-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.price {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.period {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Benefits List */
.benefits-list {
    flex: 1;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition-fast);
}

.benefit-item:hover {
    transform: translateX(4px);
}

.check-icon {
    width: 22px;
    height: 22px;
    color: #0071e3;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Primary Action Button - Uniform across all steps */
.continue-btn,
.payment-btn,
.verify-btn {
    width: 100%;
    padding: 16px 28px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.continue-btn:hover,
.payment-btn:hover:not(:disabled),
.verify-btn:hover:not(:disabled) {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.continue-btn:active,
.payment-btn:active,
.verify-btn:active {
    transform: translateY(0px);
}

.continue-btn .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.continue-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.payment-btn svg,
.verify-btn svg {
    width: 18px;
    height: 18px;
}

.verify-btn:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
    transform: none;
}

/* Security Note - Uniform footer element */
.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

.security-note svg {
    width: 16px;
    height: 16px;
    color: #34c759;
}

/* ==========================================
   STEP 2 - REGISTRATION FORM
   ========================================== */

.step-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-header--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.step-subheading {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
}

.back-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.back-btn:hover {
    background: rgba(0, 113, 227, 0.06);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

.step-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Payment Form - Symmetric Layout */
.payment-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-section {
    flex: 1;
    margin-bottom: 40px;
}

/* Form Groups - Uniform Spacing & Styling */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #86868b;
}

.form-group input:hover {
    border-color: #b0b0b5;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
    background: #ffffff;
}

.form-group input:focus::placeholder {
    opacity: 0.5;
}

/* ==========================================
   STEP 3 - OTP VERIFICATION
   ========================================== */

.otp-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.otp-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.otp-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.otp-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.otp-sent-to {
    font-weight: 500;
    color: var(--text-primary);
}

/* Error Message - Uniform Alert Design */
.otp-error-message {
    background: #fff5f5;
    border: 1.5px solid #ff3b30;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: none;
}

.otp-error-message.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s ease;
}

.otp-error-message svg {
    width: 18px;
    height: 18px;
    color: #ff3b30;
    flex-shrink: 0;
}

.otp-error-message span {
    font-size: 14px;
    color: #ff3b30;
    font-weight: 500;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.otp-input-section {
    flex: 1;
    margin-bottom: 32px;
}

.otp-input-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* OTP Inputs - Premium Design */
.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    border: 1.5px solid #d2d2d7;
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: inherit;
}

.otp-input:hover {
    border-color: #b0b0b5;
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.otp-input.filled {
    border-color: #34c759;
    background: rgba(52, 199, 89, 0.04);
}

.otp-input.error {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.04);
}

/* Timer - Uniform Typography */
.otp-timer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.otp-timer.expired {
    color: #ff3b30;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-bottom: 32px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
}

.resend-btn:hover:not(:disabled) {
    background: rgba(0, 113, 227, 0.06);
}

.resend-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==========================================
   LOADING STATES
   ========================================== */

.payment-btn.loading,
.continue-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.payment-btn.loading::after,
.continue-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   SUCCESS STATE (if needed)
   ========================================== */

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 40px 0;
}

.success-icon {
    margin-bottom: 32px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    color: #34c759;
}

.success-container h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 400px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    .subscription-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .left-pane {
        padding: 60px 20px;
        min-height: 400px;
    }

    .illustration-container {
        max-width: 450px;
    }

    .right-pane {
        padding: 44px;
    }

    .section-header h2 {
        font-size: 40px;
    }

    .plan-header h3,
    .step-header h3,
    .otp-header h3 {
        font-size: 24px;
    }

    .price {
        font-size: 44px;
    }

    .subscription-section {
        padding: 100px 16px 60px;
    }
}

@media (max-width: 640px) {
    .subscription-card {
        border-radius: 20px;
    }

    .right-pane {
        padding: 36px 28px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 17px;
    }

    .plan-header h3,
    .step-header h3,
    .otp-header h3 {
        font-size: 22px;
    }

    .price {
        font-size: 40px;
    }

    .benefit-item {
        font-size: 15px;
        padding: 12px 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 48px;
        height: 56px;
        font-size: 24px;
    }

    .left-pane {
        min-height: 320px;
        padding: 40px 20px;
    }

    .illustration-container {
        max-width: 100%;
    }

    /* Simplify animations on mobile */
    .subscription-svg {
        animation: none;
        filter: drop-shadow(0 8px 24px rgba(0, 113, 227, 0.1));
    }

    .left-pane::before {
        animation: none;
    }

    .step-header {
        flex-wrap: wrap;
    }
}

/* ==========================================
   FOCUS VISIBLE (Accessibility)
   ========================================== */

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
    outline: none;
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}





/* ── Phone group with +44 prefix ── */
.form-group .phone-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d2d2d7;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group .phone-group:hover {
    border-color: #b0b0b5;
}

.form-group .phone-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.form-group .phone-prefix {
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--accent);
    border-right: 1.5px solid #d2d2d7;
    color: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    user-select: none;
}

.form-group .phone-group input[type="tel"] {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    transition: none;
}

.form-group .phone-group input[type="tel"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.form-group .phone-group input[type="tel"]::placeholder {
    color: #86868b;
}

.form-group .phone-group input[type="tel"]:focus::placeholder {
    opacity: 0.5;
}