* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}


.wrapper {
    width: 100%;
    max-width: 900px; 
}


.header {
    text-align: center;
    margin-bottom: 30px;
}

.header .brand {
    font-weight: 700;
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.header p {
    color: #6b7280;
    font-size: 15px;
}


.card {
    background: #ffffff;
    padding: 48px 56px; 
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}


.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.flash.success {
    background-color: #e6f9f0;
    color: #0f5132;
    border: 1px solid #b7ebd4;
}

.flash.success i {
    font-size: 20px;
    color: #10b981;
}


.section {
    margin-bottom: 30px;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    color: #111827;
}


.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}


.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}


.plans {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.plan {
    flex: 1;
    min-width: 140px;
    padding: 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
}

.plan input {
    display: none;
}

.plan .icon {
    font-size: 32px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.plan.starter .icon { color: #10b981; }
.plan.growth .icon { color: #facc15; }
.plan.premium .icon { color: #ef4444; }

.plan:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}


.plan.selected {
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
}

.plan input:checked ~ .icon {
    transform: scale(1.2);
}

.plan input:checked ~ .plan-title,
.plan input:checked ~ .plan-price {
    color: #2563eb;
    font-weight: 700;
}

.plan-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #111827;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111827;
}

.plan-desc {
    font-size: 12px;
    color: #6b7280;
}


.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 25px;
}

.checkbox a {
    color: #2563eb;
    text-decoration: none;
}

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

.checkbox input {
    width: auto;
    cursor: pointer;
}


.submit button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.25);
}


.footer {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 15px;
}


@media(max-width: 480px){
    .grid { grid-template-columns: 1fr; }
    .plans { flex-direction: column; }
}


@media (min-width: 1024px) {
    .grid {
        gap: 24px;
    }

    .plans {
        gap: 24px;
    }
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.password-container {
    position: relative;
}

.password-container input {
    width: 100%;
    padding-right: 30px;
}

.password-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}