﻿

.wizard-container {
    background-color: color-mix(in srgb, var(--bs-body-bg) 92%, green);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 10px;
    margin-top: 6px;
}

    .wizard-container h2 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--bs-heading-color);
    }

    .wizard-container h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--bs-heading-color);
    }

.progress-bar {
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

/* Form styles */
.form-group {
    margin-bottom: 8px;
    position: relative;
}

/* Special spacing for step 1 */
[data-step="1"] .form-group {
    margin-bottom: 10px;
}

.wizard-container label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bs-heading-color);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.2s ease;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

/* Plan Creation Info styles */
.plan-creation-info {
    padding: 10px;
    border: 2px solid lightblue;
    border-radius: 12px;
    margin-bottom: 16px;
}

    .plan-creation-info p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .plan-creation-info ul {
        list-style: none;
        margin: 0 0 10px;
        padding: 0;
    }

        .plan-creation-info ul li {
            padding: 6px 0 6px 24px;
            position: relative;
        }

            .plan-creation-info ul li::before {
                content: "✓";
                position: absolute;
                left: 0;
                font-weight: bold;
            }

.terms-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* Validation styles */
.error {
    border-color: #dc2626 !important;
}

.error-message {
    color: #dc2626;
    font-size: 12.6px;
    font-weight: 500;
    margin-top: 8px;
    padding: 7.2px;
    background-color: #fee2e2;
    border-radius: 6px;
    display: none;
}

    .error-message.visible {
        display: block;
    }

/* Premium feature notification */
.premium-notification {
    background-color: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
    padding: 10.8px 14.4px;
    border-radius: 8px;
    margin-bottom: 14.4px;
    font-size: 12.6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10.8px;
}

    .premium-notification svg {
        flex-shrink: 0;
        color: #f97316;
    }

/* Time input styles */
.time-input {
    display: flex;
    gap: 16px;
}

.time-field {
    flex: 1;
    position: relative;
}

.input-wrapper {
    position: relative;
    height: 48px;
}

    .input-wrapper input {
        width: 100%;
        padding-right: 48px;
        font-size: 20px;
        height: 100%;
    }

.time-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

/* Custom distance styles */
.distance-container {
    display: flex;
    gap: 16px;
}

.distance-input {
    flex: 2;
}

.distance-unit {
    flex: 1;
}

/* Measurement input styles */
.measurement-input {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.flex-grow {
    flex: 2;
}

.unit-select {
    flex: 1;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
}

/* Helper text */
.helper-text {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
}

/* Character counter */
.char-counter {
    margin-top: 8px;
    font-size: 14px;
    text-align: right;
}

/* Button styles */
.wizard-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
    gap: 16px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

    .btn.primary {
        background-color: #2563eb;
        color: white;
    }

        .btn.primary:hover {
            background-color: #1d4ed8;
        }

        .btn.primary:disabled {
            background-color: #93c5fd;
            cursor: not-allowed;
        }

    .btn.secondary {
        background-color: #fff;
        border: 2px solid #d1d5db;
        color: #374151;
    }

        .btn.secondary:hover {
            background-color: #f3f4f6;
        }

/* Captcha styles */
.captcha-container {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.captcha-image {
    flex: 1;
    height: 60px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    color: #1f2937;
    user-select: none;
    position: relative;
    overflow: hidden;
}

    .captcha-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.05) 10px, rgba(0, 0, 0, 0.05) 20px );
    }

/* Email verification styles */
.verification-info {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.spam-note {
    margin-top: 12px;
    font-size: 14px;
}

.verification-code-input input {
    letter-spacing: 8px;
    font-size: 24px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.resend-code {
    margin-top: 16px;
    width: auto;
}

/* Payment styles */
.payment-info {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

    .payment-info p {
        font-size: 14px;
        margin-bottom: 12px;
    }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

    .feature-list li {
        padding: 4px 0 4px 28px;
        position: relative;
    }

        .feature-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            font-weight: bold;
        }

.payment-option {
    display: block;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}


.payment-option--primary {
    transform-origin: left center;
    padding: 0.75rem;
}


.payment-option.selected {
    background-color: color-mix(in srgb, var(--bs-body-bg) 55%, green);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) inset;
}


.payment-title {
    font-weight: 600;
    font-size: 1rem;
}


.payment-desc {
    font-size: 0.9rem;
    opacity: 0.85;
}


.payment-price {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    align-self: start;
}


.payment-summary {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

/* Processing state styles */
.processing-state {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error state styles */
.error-message-box {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

/* Info message styles */
.info-message-box {
    background-color: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

    .action-buttons .btn {
        flex: 1;
    }

/* Create plan button styles */
.create-plan-container {
    text-align: center;
    margin-top: 32px;
}

    .create-plan-container .btn {
        min-width: 200px;
        font-size: 18px;
        padding: 16px 32px;
    }

/* Success message styles */
.success-message-box {
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
}

#redirect-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .wizard-container {
        padding: 6px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    label {
        font-size: 18px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
        padding: 14px 18px;
    }

    .form-group {
        margin-bottom: 6px;
    }

    .plan-creation-info {
        padding: 16px;
    }

    .account-benefits {
        padding: 16px;
    }

    .time-input {
        flex-direction: row;
        gap: 12px;
    }

    .time-field {
        flex: 1 1 calc(33.333% - 8px);
    }

    .input-wrapper input {
        font-size: 18px;
        padding-right: 40px;
    }

    .time-label {
        font-size: 14px;
        right: 12px;
    }

    .distance-container,
    .measurement-input {
        flex-direction: row;
        gap: 12px;
    }

    .flex-grow {
        flex: 2;
    }

    .unit-select {
        flex: 1;
    }

    /* Show short unit labels on mobile */
    select option[data-short]::before {
        content: attr(data-short);
    }

    select option[data-short] {
        content: attr(data-short);
    }

    .error-message {
        font-size: 16px;
        padding: 10px;
    }

    .helper-text {
        font-size: 16px;
        padding: 10px;
    }

    .premium-notification {
        padding: 14px;
    }

    .wizard-buttons {
        /*flex-direction: column-reverse;*/
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }

    .checkbox-group label {
        font-size: 16px;
    }

    input[type="checkbox"] {
        width: 28px;
        height: 28px;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-image {
        height: 80px;
    }

    .card-details {
        grid-template-columns: 1fr;
    }

    .verification-code-input input {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .create-plan-container .btn {
        width: 100%;
    }
}
