/**
 * Modern Subscription Flow Styles
 * Minimum width: 1320px
 * Clean, contemporary design with depth and polish
 */

:root {
    --primary-color: rgb(229, 57, 52);
    --primary-dark: #1a3a1b;
    --primary-light: #4a8a4c;
    --accent-color: #ff9500;
    --accent-hover: #ff7d00;
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

div.header {
    margin-bottom: 40px;
}

div.header img {
    width: 100px;
}

div.footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.subscription-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    width: 100%;
}

.plan-duration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 800px) {
    .plan-duration {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .subscription-content {
        padding: 15px !important;
    }

}

@media screen and (max-width: 900px) {
    .secondary-plan-card, .first-container {
        flex-direction: column;
    }

    .secondary-plan-card .plan-features {
        flex-wrap: wrap;
    }

    .footer-total {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .footer-total button {
        width: 100%;
    }

}

/* Container */
.subscription-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Progress Indicator */
.progress-indicator {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content Area */
.subscription-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}


/* Step Header */
.step-header {
    margin-bottom: 40px;
    text-align: center;
}

.step-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.step-header p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* Plan Cards */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.navigation {
    margin-bottom: 24px;
}

.plan-card {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: var(--shadow-xl);
}

.plan-card.selected::before {
    transform: scaleX(1);
}

.plan-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.plan-card.popular .plan-badge {
    background: var(--primary-color);
}

.plan-card.digital .plan-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.plan-price span {
    line-height: normal;
}

.plan-price-unit {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 15px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.main-column {
    min-height: 400px;
}

.sidebar-column {
    position: sticky;
    top: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-input.error + .form-error {
    display: block;
}

/* Checkbox and Radio Styles */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.option-card:hover {
    border-color: var(--primary-light);
    background: var(--white);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: var(--text-dark);
}

.option-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.option-price .period-label {
    margin-top: 0;
}

.option-price span {
    text-align: right;
}

/* Order Summary */
.order-summary {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.summary-item-label {
    color: var(--text-light);
}

.summary-item-value {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 0;
    border-top: 3px solid var(--primary-color);
    margin-top: 15px;
}

.summary-total-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-total-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    padding: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Responsive (below 1320px) */
@media (max-width: 1320px) {
    .subscription-container {
        padding: 20px;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        position: static;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Payment Method Buttons */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.payment-btn {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.payment-btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.payment-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}


/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-dropdown div {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.autocomplete-dropdown div:hover {
    background-color: var(--bg-light);
}

.autocomplete-dropdown div:last-child {
    border-bottom: none;
}

/* Tab Styles */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}


.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-section {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.auth-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-dark);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}
