/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --background: #f9fafb;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.price .tax-info {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 5px;
}

.card-body {
    padding: 30px;
}

/* User Selector */
.user-selector {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
}

.user-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.user-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-dropdown:hover {
    border-color: var(--primary-color);
}

.user-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Features List */
.features {
    margin-bottom: 25px;
}

.features h3 {
    font-size: 1.125rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.features ul {
    list-style: none;
}

.features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features li strong {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Info Section */
.info-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.info-list li {
    padding: 8px 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Registration Form */
.selected-package-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}

.selected-package-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.package-details span {
    font-size: 1.1rem;
}

.price-highlight {
    font-size: 1.5rem !important;
    font-weight: 700;
}

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

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.flex-1 {
    flex: 1;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group.flex-3 {
    flex: 3;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 5px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--error-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.payment-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
}

.payment-info h3, .payment-info p strong {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.payment-info ol {
    margin: 20px 0;
    padding-left: 20px;
}

.payment-info ol li {
    margin: 10px 0;
    color: var(--text-secondary);
}

.security-note {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Success Page */
.success-container {
    text-align: center;
}

.success-icon {
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 40px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-secondary);
}

.package-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 30px 0;
}

.summary-details {
    text-align: left;
    max-width: 500px;
    margin: 20px auto 0;
}

.summary-details p {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-details p:last-child {
    border-bottom: none;
}

.action-buttons {
    margin: 40px 0;
}

.help-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 30px 0;
}

.help-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

.additional-info {
    background: var(--background);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.additional-info h4 {
    margin-bottom: 15px;
}

.additional-info ul {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.additional-info li {
    padding: 8px 0;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

/* Billing Period Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
}

.billing-option {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.billing-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

.discount-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}
