/* ============================
   SIGNUP / UPGRADE SHARED STYLES
============================ */

.signup-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

/* Progress bar */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 20px;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #c7d2fe;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: #5154db;
    border-color: #5154db;
    color: #fff;
}

.progress-step.completed .step-circle {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.progress-step span {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.progress-step.active span,
.progress-step.completed span {
    color: #5154db;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 22px;
    min-width: 40px;
}

.progress-line--completed {
    background: #4CAF50;
}

/* Card */
.signup-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.signup-card h1 {
    font-size: 1.8rem;
    color: #1F4E79;
    margin: 0 0 8px;
}

.signup-subtitle {
    color: #595959;
    margin: 0 0 28px;
    font-size: 0.95rem;
}

.change-plan {
    color: #5154db;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Plan selector */
.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.plan-option {
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-option--selected {
    border-color: #5154db;
    background: #f8f8ff;
}

.plan-option__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.plan-option__name {
    font-weight: 700;
    color: #1F4E79;
    font-size: 1rem;
}

.plan-option__price {
    font-weight: 700;
    color: #5154db;
    font-size: 1rem;
}

.plan-option__desc {
    color: #595959;
    font-size: 0.85rem;
    margin: 0;
}

/* Partner code */
.partner-code-field,
.partner-code-section {
    margin-top: 12px;
}

.partner-code-section label {
    font-weight: 600;
    color: #1F4E79;
    display: block;
    margin-bottom: 6px;
}

.partner-code-hint {
    color: #595959;
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.partner-code-row {
    display: flex;
    gap: 8px;
}

.partner-code-row input,
.partner-code-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-validate {
    background: #5154db;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.partner-code-message {
    font-size: 0.85rem;
    margin: 6px 0 0;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5154db;
    box-shadow: 0 0 0 3px rgba(81,84,219,0.1);
}

.form-group small {
    color: #888;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Consents */
.form-consents {
    margin-bottom: 20px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #595959;
    cursor: pointer;
}

.consent-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #5154db;
}

.consent-item a {
    color: #5154db;
    text-decoration: none;
}

/* Payment summary */
.payment-summary {
    background: #f8f8ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.payment-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #595959;
    font-size: 0.95rem;
}

.payment-summary__total {
    border-top: 1px solid #c7d2fe;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    color: #1F4E79;
    font-size: 1.05rem;
}

/* Upgrade features */
.upgrade-features {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.upgrade-features h3 {
    color: #1F4E79;
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.upgrade-features p {
    color: #595959;
    font-size: 0.88rem;
    margin: 4px 0;
}

/* Actions */
.signup-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.btn-next {
    background: #5154db;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.btn-next:hover { background: #3f41b3; }
.btn-next:disabled { background: #a5b4fc; cursor: not-allowed; }

.btn-back {
    color: #595959;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
}

.btn-back:hover { background: #f9fafb; }

/* Form message */
.form-message {
    font-size: 0.9rem;
    margin: 8px 0;
    min-height: 20px;
}

/* Login note */
.signup-login-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #595959;
}

.signup-login-note a {
    color: #5154db;
    font-weight: 600;
    text-decoration: none;
}

/* Optional label */
.optional {
    color: #888;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Confirmation */
.confirmation-card {
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.confirmation-plan {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.confirmation-plan h3 {
    color: #1F4E79;
    margin: 0 0 12px;
}

.confirmation-plan p {
    color: #595959;
    margin: 4px 0;
    font-size: 0.9rem;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
    .signup-card { padding: 24px 20px; }
    .signup-actions { flex-direction: column-reverse; }
    .btn-back { text-align: center; }
}
