/* Enroll Barebones Form Styles */
body {
    font-family: 'Inter', sans-serif;
}

.progress-dot {
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: #5B21B6;
    transform: scale(1.2);
}

.progress-dot.completed {
    background-color: #10B981;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-card {
    transition: all 0.2s ease;
    cursor: pointer;
    border-width: 2px;
    border-style: solid;
    border-color: #E5E7EB;
    touch-action: manipulation;
}

.option-card:hover {
    border-color: #5B21B6;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.1);
    transform: translateY(-2px);
}

.option-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(91, 33, 182, 0.15);
}

.option-card.selected {
    border-color: #5B21B6;
    background-color: #F3F0FF;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .option-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5B21B6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #5B21B6;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

/* Mobile input improvements */
@media (max-width: 640px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px;
        /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }
}

.checkbox-custom {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom:checked {
    background-color: #5B21B6;
    border-color: #5B21B6;
}

.checkbox-custom:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.inline-encouragement {
    background: linear-gradient(135deg, #E6E0FF 0%, #F3F0FF 100%);
    border-left: 4px solid #5B21B6;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #4C1D95;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #F0FDF4;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #166534;
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }

    .fade-in {
        animation: fadeInMobile 0.3s ease-in;
    }

    @keyframes fadeInMobile {
        from {
            opacity: 0;
            transform: translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Improve tap targets */
button,
.option-card {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Better focus states for accessibility */
button:focus-visible,
.option-card:focus-visible {
    outline: 2px solid #5B21B6;
    outline-offset: 2px;
}