/* Step 3 specific CSS */

/* Form input styling */
#step3 input:focus,
#step3 select:focus,
#step3 textarea:focus {
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.2);
}

/* Checkbox styling */
#terms {
    cursor: pointer;
}

#terms + label {
    cursor: pointer;
}

/* Submit button styling */
#step3-submit {
    transition: all 0.2s ease;
}

#step3-submit:not(:disabled):hover {
    transform: translateY(-1px);
}

/* Source selection */
#source, #partner {
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Pulse animation for the submit button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(9, 105, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0);
    }
}

.animate-pulse {
    animation: pulse 1.5s ease-out infinite;
}

/* Progress bar transitions */
#form-progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Checkmark for completed fields */
.field-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partner indicator styling */
.partner-indicator {
    display: inline-flex;
    align-items: center;
    background-color: rgba(219, 234, 254, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e40af;
    margin-top: 0.5rem;
}

/* Mobile specific styles */
@media (max-width: 640px) {
    #step3 input,
    #step3 select,
    #step3 textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
        padding: 0.75rem;
    }
    
    #step3-submit {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Make checkboxes easier to tap */
    #terms {
        transform: scale(1.2);
    }
    
    /* Terms text styling for mobile */
    #terms + label p {
        font-size: 0.875rem;
    }
    
    /* Blue info box styling for mobile */
    .bg-blue-50 {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    /* Add more space after the green checkmark header */
    #step3 .text-center {
        margin-bottom: 1.5rem;
    }
    
    /* Progress bar styling for mobile */
    #form-progress {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Ensure spacing between fields */
    .space-y-6 > div {
        margin-bottom: 1.5rem;
    }
}