/* Aeris Luxury Theme - Contact Form Styles */

/* ========================================
   CONTACT FORM BASE STYLES
======================================== */
.aeris-contact-form {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.aeris-contact-container {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.aeris-contact-form-wrapper {
    background: var(--glass-luxury);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--aeris-shadow-luxury);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.aeris-contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aeris-gold), transparent);
    opacity: 0.7;
}

/* ========================================
   FORM GROUP STYLES
======================================== */
.aeris-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.aeris-form-group.focused .aeris-form-label {
    color: var(--aeris-gold, #d4af37);
    transform: translateY(-0.25rem);
}

.aeris-form-group.has-value .aeris-form-label,
.aeris-form-group.focused .aeris-form-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   FORM LABEL STYLES
======================================== */
.aeris-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal, 300ms);
}

.aeris-form-label-floating {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
    pointer-events: none;
    transition: all var(--transition-normal, 300ms);
    background: transparent;
    z-index: 1;
}

.aeris-form-group.focused .aeris-form-label-floating,
.aeris-form-group.has-value .aeris-form-label-floating {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--aeris-primary, #3b82f6);
    background: white;
    padding: 0 0.25rem;
}

/* ========================================
   FORM INPUT STYLES
======================================== */
.aeris-form-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    transition: all var(--transition-normal, 300ms);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.aeris-form-input:focus {
    outline: none;
    border-color: var(--aeris-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
}

.aeris-form-input.has-icon {
    padding-left: 3rem;
}

.aeris-form-input.has-error {
    border-color: #ef4444;
    background: rgba(254, 242, 242, 0.5);
}

.aeris-form-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.aeris-form-input.has-success {
    border-color: #10b981;
    background: rgba(240, 253, 244, 0.5);
}

.aeris-form-input.has-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ========================================
   FORM ICON STYLES
======================================== */
.aeris-form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: color var(--transition-normal, 300ms);
    z-index: 2;
}

.aeris-form-group:focus-within .aeris-form-icon {
    color: var(--aeris-primary, #3b82f6);
}

.aeris-form-group.has-error .aeris-form-icon {
    color: #ef4444;
}

.aeris-form-group.has-success .aeris-form-icon {
    color: #10b981;
}

/* ========================================
   TEXTAREA STYLES
======================================== */
.aeris-form-textarea {
    resize: none;
    min-height: 120px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1.6;
}

.aeris-form-textarea.auto-resize {
    overflow-y: hidden;
}

/* ========================================
   SELECT STYLES
======================================== */
.aeris-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.aeris-form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* ========================================
   CHECKBOX & RADIO STYLES
======================================== */
.aeris-form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--aeris-primary, #3b82f6);
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all var(--transition-normal, 300ms);
    cursor: pointer;
}

.aeris-form-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--aeris-primary, #3b82f6);
}

.aeris-form-checkbox:checked {
    background-color: var(--aeris-primary, #3b82f6);
    border-color: var(--aeris-primary, #3b82f6);
}

.aeris-form-radio {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--aeris-primary, #3b82f6);
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all var(--transition-normal, 300ms);
    cursor: pointer;
}

.aeris-form-radio:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--aeris-primary, #3b82f6);
}

.aeris-form-radio:checked {
    background-color: var(--aeris-primary, #3b82f6);
    border-color: var(--aeris-primary, #3b82f6);
}

/* ========================================
   FORM SUBMIT BUTTON
======================================== */
.aeris-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--aeris-primary, #3b82f6), var(--aeris-primary-dark, #2563eb));
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal, 300ms);
    transform: translateY(0);
    font-size: 1rem;
    min-width: 150px;
}

.aeris-form-submit:hover:not(:disabled) {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--aeris-primary-dark, #2563eb), var(--aeris-secondary-dark, #5b21b6));
}

.aeris-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aeris-form-submit.loading {
    pointer-events: none;
    position: relative;
}

.aeris-form-submit.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   FORM VALIDATION STYLES
======================================== */
.aeris-form-error {
    display: flex;
    align-items: flex-start;
    margin-top: 0.5rem;
    color: #ef4444;
    font-size: 0.875rem;
    line-height: 1.4;
}

.aeris-form-error-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.aeris-form-success {
    display: flex;
    align-items: flex-start;
    margin-top: 0.5rem;
    color: #10b981;
    font-size: 0.875rem;
    line-height: 1.4;
}

.aeris-form-success-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.aeris-field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.aeris-field-error::before {
    content: '⚠';
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ========================================
   FORM MESSAGE STYLES
======================================== */
.aeris-form-message {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.aeris-form-message.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.aeris-form-message.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    color: #dc2626;
}

.aeris-form-message.warning {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 1px solid #fde68a;
    color: #d97706;
}

.aeris-form-message.info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.aeris-form-message-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.aeris-form-message.success .aeris-form-message-icon {
    background: #10b981;
    color: white;
}

.aeris-form-message.error .aeris-form-message-icon {
    background: #ef4444;
    color: white;
}

.aeris-form-message.warning .aeris-form-message-icon {
    background: #f59e0b;
    color: white;
}

.aeris-form-message.info .aeris-form-message-icon {
    background: #3b82f6;
    color: white;
}

.aeris-form-message-close {
    margin-left: auto;
    padding: 0.25rem;
    color: currentColor;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity var(--transition-normal, 300ms);
    background: none;
    border: none;
}

.aeris-form-message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CONTACT INFO STYLES
======================================== */
.aeris-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.aeris-contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal, 300ms);
    text-decoration: none;
    color: inherit;
}

.aeris-contact-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
}

.aeris-contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal, 300ms);
}

.aeris-contact-item:hover .aeris-contact-icon {
    transform: scale(1.1);
}

.aeris-contact-icon.email {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.aeris-contact-icon.phone {
    background: linear-gradient(135deg, #10b981, #047857);
}

.aeris-contact-icon.address {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.aeris-contact-details h4 {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
}

.aeris-contact-details p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ========================================
   FORM PROGRESS INDICATOR
======================================== */
.aeris-form-progress {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aeris-form-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.aeris-form-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.aeris-form-step.completed::after {
    background: var(--aeris-primary, #3b82f6);
}

.aeris-form-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal, 300ms);
}

.aeris-form-step.active .aeris-form-step-number {
    background: var(--aeris-primary, #3b82f6);
    color: white;
    transform: scale(1.1);
}

.aeris-form-step.completed .aeris-form-step-number {
    background: var(--aeris-primary, #3b82f6);
    color: white;
}

.aeris-form-step-title {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
    transition: color var(--transition-normal, 300ms);
}

.aeris-form-step.active .aeris-form-step-title,
.aeris-form-step.completed .aeris-form-step-title {
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   FORM TOOLTIPS
======================================== */
.aeris-form-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.aeris-form-tooltip-trigger {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #6b7280;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: help;
    transition: all var(--transition-normal, 300ms);
}

.aeris-form-tooltip-trigger:hover {
    background: var(--aeris-primary, #3b82f6);
}

.aeris-form-tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal, 300ms);
    margin-bottom: 0.5rem;
    z-index: 10;
}

.aeris-form-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.aeris-form-tooltip:hover .aeris-form-tooltip-content {
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .aeris-contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .aeris-contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aeris-contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .aeris-contact-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .aeris-form-submit {
        width: 100%;
        justify-content: center;
    }
    
    .aeris-form-progress {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .aeris-form-step {
        justify-content: center;
    }
    
    .aeris-form-step:not(:last-child)::after {
        display: none;
    }
    
    .aeris-form-tooltip-content {
        white-space: normal;
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .aeris-contact-container {
        padding: 0 0.5rem;
    }
    
    .aeris-contact-form-wrapper {
        padding: 1rem;
    }
    
    .aeris-form-group {
        margin-bottom: 1.25rem;
    }
    
    .aeris-form-input {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .aeris-form-input.has-icon {
        padding-left: 2.5rem;
    }
    
    .aeris-form-icon {
        left: 0.875rem;
        width: 1rem;
        height: 1rem;
    }
    
    .aeris-form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */
@media (prefers-color-scheme: dark) {
    .aeris-contact-form-wrapper {
        background: rgba(17, 24, 39, 0.8);
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .aeris-form-input {
        background: rgba(17, 24, 39, 0.5);
        border-color: rgba(75, 85, 99, 0.5);
        color: #f9fafb;
    }
    
    .aeris-form-input:focus {
        background: rgba(17, 24, 39, 0.8);
        border-color: var(--aeris-primary, #3b82f6);
    }
    
    .aeris-form-label {
        color: #d1d5db;
    }
    
    .aeris-contact-item {
        background: rgba(17, 24, 39, 0.6);
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .aeris-contact-item:hover {
        background: rgba(17, 24, 39, 0.8);
    }
    
    .aeris-contact-details h4 {
        color: #f9fafb;
    }
    
    .aeris-contact-details p {
        color: #d1d5db;
    }
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
======================================== */
@media (prefers-contrast: high) {
    .aeris-form-input,
    .aeris-contact-item,
    .aeris-form-submit {
        border-width: 2px;
        border-color: currentColor;
    }
    
    .aeris-form-message {
        border-width: 2px;
    }
    
    .aeris-contact-form-wrapper {
        border-width: 2px;
        border-color: #000;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
======================================== */
@media (prefers-reduced-motion: reduce) {
    .aeris-form-input,
    .aeris-form-submit,
    .aeris-contact-item,
    .aeris-contact-icon,
    .aeris-form-icon,
    .aeris-form-step-number,
    .aeris-form-tooltip-trigger,
    .aeris-form-tooltip-content,
    .aeris-form-message {
        transition: none !important;
        animation: none !important;
    }
    
    .aeris-form-submit:hover:not(:disabled) {
        transform: none !important;
    }
    
    .aeris-contact-item:hover {
        transform: none !important;
    }
    
    .aeris-contact-item:hover .aeris-contact-icon {
        transform: none !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .aeris-contact-form {
        background: white !important;
        color: black !important;
    }
    
    .aeris-contact-form-wrapper,
    .aeris-contact-item {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
    
    .aeris-form-submit {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
    
    .aeris-form-tooltip,
    .aeris-form-message-close {
        display: none !important;
    }
    
    .aeris-contact-icon {
        background: white !important;
        border: 1px solid black !important;
        color: black !important;
    }
}


/* ========================================
   ENHANCED FORM FIELD STYLES
   Only applied when using enhanced themes
======================================== */

/* Base Input Groups */
.enhanced-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.enhanced-input-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.enhanced-required {
    color: var(--theme-error, #ef4444);
    font-weight: 700;
}

.enhanced-input-help {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.enhanced-input-error {
    font-size: 0.75rem;
    color: var(--theme-error, #ef4444);
    font-weight: 500;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.enhanced-input-error::before {
    content: '⚠️';
    font-size: 0.875rem;
}

/* Text & Date Inputs */
.enhanced-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.enhanced-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #1f2937;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--theme-primary, #3b82f6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.enhanced-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.enhanced-input-icon {
    position: absolute;
    right: 1rem;
    color: #6b7280;
    pointer-events: none;
    transition: color 300ms;
}

.enhanced-input-icon svg,
.enhanced-input-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.enhanced-input:focus + .enhanced-input-icon {
    color: var(--theme-primary, #3b82f6);
}

/* Select Inputs */
.enhanced-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.enhanced-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #1f2937;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.enhanced-select:focus {
    outline: none;
    border-color: var(--theme-primary, #3b82f6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.enhanced-select-icon {
    position: absolute;
    right: 1rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 300ms;
}

.enhanced-select-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.enhanced-select:focus + .enhanced-select-icon {
    color: var(--theme-primary, #3b82f6);
    transform: rotate(180deg);
}

/* Textarea */
.enhanced-textarea-wrapper {
    position: relative;
}

.enhanced-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #1f2937;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    resize: vertical;
    min-height: 6rem;
}

.enhanced-textarea:focus {
    outline: none;
    border-color: var(--theme-primary, #3b82f6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.enhanced-textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.enhanced-textarea-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Checkbox Inputs */
.enhanced-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.enhanced-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.enhanced-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.enhanced-checkbox-mark {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
    flex-shrink: 0;
}

.enhanced-checkbox-icon {
    width: 1rem;
    height: 1rem;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 300ms;
}

.enhanced-checkbox:checked + .enhanced-checkbox-mark {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6), var(--theme-primary-dark, #2563eb));
    border-color: var(--theme-primary, #3b82f6);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.enhanced-checkbox:checked + .enhanced-checkbox-mark .enhanced-checkbox-icon {
    opacity: 1;
    transform: scale(1);
}

.enhanced-checkbox:focus + .enhanced-checkbox-mark {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.enhanced-checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

/* Radio Inputs */
.enhanced-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.enhanced-radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.enhanced-radio-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.enhanced-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.enhanced-radio-mark {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
    flex-shrink: 0;
}

.enhanced-radio-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transform: scale(0);
    transition: all 300ms;
}

.enhanced-radio:checked + .enhanced-radio-mark {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6), var(--theme-primary-dark, #2563eb));
    border-color: var(--theme-primary, #3b82f6);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.enhanced-radio:checked + .enhanced-radio-mark .enhanced-radio-dot {
    opacity: 1;
    transform: scale(1);
}

.enhanced-radio:focus + .enhanced-radio-mark {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.enhanced-radio-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

/* Error States */
.enhanced-input-group.has-error .enhanced-input,
.enhanced-input-group.has-error .enhanced-select,
.enhanced-input-group.has-error .enhanced-textarea {
    border-color: var(--theme-error, #ef4444);
    background: rgba(254, 242, 242, 0.8);
}

.enhanced-input-group.has-error .enhanced-input:focus,
.enhanced-input-group.has-error .enhanced-select:focus,
.enhanced-input-group.has-error .enhanced-textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Disabled States */
.enhanced-input:disabled,
.enhanced-select:disabled,
.enhanced-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(249, 250, 251, 0.8);
}

.enhanced-checkbox:disabled + .enhanced-checkbox-mark,
.enhanced-radio:disabled + .enhanced-radio-mark {
    opacity: 0.6;
    cursor: not-allowed;
}

.enhanced-checkbox:disabled ~ .enhanced-checkbox-label,
.enhanced-radio:disabled ~ .enhanced-radio-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 640px) {
    .enhanced-input,
    .enhanced-select,
    .enhanced-textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .enhanced-select {
        padding-right: 2.5rem;
    }
    
    .enhanced-checkbox-item,
    .enhanced-radio-item {
        padding: 0.625rem 0.875rem;
    }
    
    .enhanced-checkbox-mark,
    .enhanced-radio-mark {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .enhanced-input,
    .enhanced-select,
    .enhanced-textarea,
    .enhanced-checkbox-mark,
    .enhanced-radio-mark,
    .enhanced-checkbox-icon,
    .enhanced-radio-dot,
    .enhanced-checkbox-item,
    .enhanced-radio-item {
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .enhanced-input,
    .enhanced-select,
    .enhanced-textarea {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid #000 !important;
    }
    
    .enhanced-checkbox-item,
    .enhanced-radio-item {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid #000 !important;
    }
    
    .enhanced-checkbox-mark,
    .enhanced-radio-mark {
        border: 2px solid #000 !important;
    }
}

/* Focus Visible */
.enhanced-input:focus-visible,
.enhanced-select:focus-visible,
.enhanced-textarea:focus-visible {
    outline: 2px solid var(--theme-primary, #3b82f6);
    outline-offset: 2px;
}

.enhanced-checkbox:focus-visible + .enhanced-checkbox-mark,
.enhanced-radio:focus-visible + .enhanced-radio-mark {
    outline: 2px solid var(--theme-primary, #3b82f6);
    outline-offset: 2px;
}