/* Enhanced Form Styles for Registration Page */

/* Enhanced Input Styling */
input:not([type="radio"]):not([type="file"]),
select,
textarea {
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #cbd5e1;
    border-radius: .75rem;
    padding: .875rem 1rem;
    min-height: 3.25rem;
    font-size: 0.9375rem;
    background: #fff;
}

textarea {
    min-height: 6.5rem;
    resize: vertical;
}

input:not([type="radio"]):not([type="file"]):hover,
select:hover,
textarea:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

input:not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12), 0 2px 4px rgba(0, 0, 0, .05);
    transform: translateY(-1px);
}

/* Dark mode inputs */
.dark input:not([type="radio"]):not([type="file"]),
.dark select,
.dark textarea {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

.dark input:not([type="radio"]):not([type="file"]):hover,
.dark select:hover,
.dark textarea:hover {
    border-color: #64748b;
}

.dark input:not([type="radio"]):not([type="file"]):focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .15), 0 2px 4px rgba(0, 0, 0, .3);
}

/* Custom Radio Buttons */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    border: 2.5px solid #cbd5e1;
    border-radius: 50%;
    min-height: auto !important;
    padding: 0 !important;
    position: relative;
    cursor: pointer;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

input[type="radio"]:hover {
    border-color: #10b981;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(16, 185, 129, .15);
}

input[type="radio"]:checked {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.55rem;
    height: 0.55rem;
    background: white;
    border-radius: 50%;
}

/* Radio label styling */
label:has(input[type="radio"]) {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all .2s ease;
}

label:has(input[type="radio"]):hover {
    background: rgba(16, 185, 129, .05);
}

.dark label:has(input[type="radio"]):hover {
    background: rgba(16, 185, 129, .1);
}

/* File input styling */
input[type="file"] {
    position: relative;
    border: 2.5px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    min-height: auto !important;
}

input[type="file"]:hover {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(16, 185, 129, .1) !important;
}

input[type="file"]:focus {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .08) !important;
}

.dark input[type="file"] {
    background: #0f172a !important;
    border-color: #475569 !important;
}

.dark input[type="file"]:hover,
.dark input[type="file"]:focus {
    background: #1e293b !important;
    border-color: #10b981 !important;
}

/* Enhanced Section Cards */
section {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    transition: all .3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* Section Icons */
.section-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    margin-right: 0.875rem;
}

.dark .section-icon {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 185, 129, .3);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transition: left .6s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .4);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* Slide-in animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-reveal] {
    animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

[data-reveal]:nth-child(1) { animation-delay: 0.05s; }
[data-reveal]:nth-child(2) { animation-delay: 0.15s; }
[data-reveal]:nth-child(3) { animation-delay: 0.25s; }
[data-reveal]:nth-child(4) { animation-delay: 0.35s; }
[data-reveal]:nth-child(5) { animation-delay: 0.45s; }
[data-reveal]:nth-child(6) { animation-delay: 0.55s; }
[data-reveal]:nth-child(7) { animation-delay: 0.65s; }

/* Label enhancements */
label {
    font-weight: 500;
    color: #334155;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    display: block;
}

.dark label {
    color: #e2e8f0;
}

label .text-red-600 {
    color: #dc2626;
    margin-left: 0.15rem;
    font-weight: 600;
}

.dark label .text-red-600 {
    color: #f87171;
}

/* Placeholder styling */
::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.dark ::placeholder {
    color: #64748b;
}

/* Form title enhancement */
.form-title {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Info banner enhancement */
.info-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-left: 4px solid #10b981;
}

.dark .info-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}
