/* CSS Variables */
:root {
    --bg: #ffffff;
    --ink: #1a1a1a;
    --surface: #ffffff;
    --link: #2563eb;
    --accent: #d97706;
    --darkBand: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: #0A1D40;
    border-bottom: 2px solid #A9B7C6;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    color: white;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #D4AF37;
}

/* Progress Bar */
.progress-bar {
    background: var(--surface);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.step-group {
    display: flex;
    align-items: center;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #6b7280;
}

.step-circle.active {
    background: var(--accent);
    color: white;
}

.step-connector {
    width: 64px;
    height: 4px;
    background: #e5e7eb;
    margin: 0 0.5rem;
}

.step-connector.active {
    background: var(--accent);
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

.form-container {
    max-width: 42rem;
    margin: 0 auto;
}

.step {
    display: none;
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.step.active {
    display: block;
}

.step h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Plans Grid */
.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: #d1d5db;
}

.plan-card.selected {
    border-color: var(--accent);
    background: rgba(217, 119, 6, 0.02);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.plan-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-header p {
    font-size: 0.875rem;
    color: #6b7280;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    white-space: nowrap;
}

.plan-period {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Review Card */
.review-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.review-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.review-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-details p {
    font-size: 0.875rem;
}

.review-details strong {
    display: inline-block;
    width: 80px;
}

.terms-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button:only-child {
    margin-left: auto;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: #b45309;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--ink);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #16a34a;
}

.success-message h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--ink);
}

.success-message p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.redirect-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Footer */
footer {
    background: #0A1D40;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 2px solid #A9B7C6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

footer h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

footer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer p,
footer li {
    color: #D1D5DB;
    margin-bottom: 0.5rem;
}

footer ul {
    list-style: none;
}

footer a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4B5563;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        text-align: center;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-header {
        flex-direction: column;
    }
    
    .plan-price {
        align-self: flex-start;
    }
}
