/**
 * Onboarding Styles
 * 
 * Modern, clean styling for signup and plan selection
 */

.onboarding-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.onboarding-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.onboarding-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.onboarding-header h1 {
    font-size: 3rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.onboarding-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Signup Form */
.signup-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.signup-card h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #333;
}

.signup-card .subtitle {
    color: #666;
    margin-bottom: 30px;
}

.signup-form .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-info {
    background: #f0f6ff;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.form-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.form-info li {
    margin: 5px 0;
}

.required {
    color: #d63638;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
}

.signup-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.signup-form input:focus {
    outline: none;
    border-color: #667eea;
}

.signup-form small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-label span {
    color: #666;
    font-size: 0.9rem;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 16px 24px;
    font-size: 1.1rem;
}

.signup-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.signup-footer a {
    color: #667eea;
    text-decoration: none;
}

.signup-footer a:hover {
    text-decoration: underline;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* AI Learning Consent */
.ai-learning-note {
    display: block;
    margin-top: 8px;
    padding: 12px;
    background: #f0f7ff;
    border-left: 3px solid #2196F3;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1565C0;
    line-height: 1.5;
}

.info-icon {
    cursor: help;
    margin-left: 4px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.checkbox-label .required {
    color: #e74c3c;
    font-weight: bold;
}

/* Features Section */
.onboarding-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    color: white;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.feature-item p {
    margin: 0;
    opacity: 0.9;
}

/* Billing Cycle Toggle */
.billing-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.billing-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-option:hover {
    border-color: #667eea;
}

.billing-option input[type="radio"] {
    margin: 0;
}

.billing-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #667eea;
}

.billing-option:has(input:checked) {
    border-color: #667eea;
    background: #f0f7ff;
}

.discount-badge {
    background: #28a745;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.yearly-note {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Add-ons Section */
.addons-section {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.addon-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.addon-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.addon-checkbox {
    cursor: pointer;
    display: block;
}

.addon-checkbox input[type="checkbox"] {
    display: none;
}

.addon-checkbox input[type="checkbox"]:checked + .addon-content {
    background: #e8f4f8;
    border-color: #667eea;
}

.addon-content {
    transition: all 0.3s ease;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.addon-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.addon-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.addon-description {
    color: #666;
    margin: 10px 0;
    font-size: 0.95rem;
}

.addon-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.addon-features li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.addon-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.domain-input-wrapper {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.domain-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.domain-input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.domain-help {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
}

.addons-summary {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    font-size: 1.2rem;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #667eea;
}

/* Plans Page */
.plans-container {
    margin: 40px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #333;
}

.plan-description {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.plan-pricing {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0 5px;
}

.period {
    font-size: 1.2rem;
    color: #666;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.trial-icon {
    font-size: 1.2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: #333;
}

.feature-check {
    color: #4caf50;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.plan-limits {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.limit-item {
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.btn-select-plan {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.plan-selection-footer {
    text-align: center;
    color: white;
    margin-top: 40px;
}

.plan-selection-footer p {
    margin: 10px 0;
    opacity: 0.9;
}

.trial-info strong,
.money-back strong {
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.modal-content p {
    color: #666;
    margin: 10px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    flex: 1;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

#confirm-plan-selection {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .onboarding-header h1 {
        font-size: 2rem;
    }
    
    .signup-card {
        padding: 30px 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-popular {
        transform: scale(1);
    }
    
    .modal-content {
        margin: 20% 10px;
        padding: 30px 20px;
    }
}

