/* Sophisticated Form Components Styles */

/* Sophisticated Date Picker */
.sophisticated-date-picker {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    cursor: pointer;
    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 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.date-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.date-select:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.month-select {
    flex: 2;
}

.day-select {
    flex: 1;
}

.year-select {
    flex: 1.2;
}

/* Dynamic Location Selector */
.location-selector-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.location-field {
    flex: 1;
}

.location-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    cursor: pointer;
    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 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.location-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.location-select:hover:not(:disabled) {
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.location-select:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom City Input (when "Other" is selected) */
.custom-city-input {
    margin-top: 12px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    width: 100%;
    animation: slideDown 0.3s ease;
}

.custom-city-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Form Labels */
.sophisticated-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.5px;
}

.sophisticated-label::after {
    content: '*';
    color: #d4af37;
    margin-left: 4px;
    font-weight: bold;
}

.sophisticated-label.optional::after {
    content: '(optional)';
    color: #718096;
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

/* Form Field Containers */
.sophisticated-field {
    margin-bottom: 24px;
    position: relative;
}

.sophisticated-field-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.sophisticated-field-group .sophisticated-field {
    flex: 1;
    margin-bottom: 0;
}

/* Field Descriptions */
.field-description {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
}

/* Validation States */
.sophisticated-field.error .date-select,
.sophisticated-field.error .location-select,
.sophisticated-field.error .custom-city-input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.sophisticated-field.success .date-select,
.sophisticated-field.success .location-select,
.sophisticated-field.success .custom-city-input {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sophisticated-date-picker {
        flex-direction: column;
        gap: 12px;
    }
    
    .date-select {
        width: 100%;
    }
    
    .location-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .sophisticated-field-group {
        flex-direction: column;
        gap: 0;
    }
    
    .sophisticated-field-group .sophisticated-field {
        margin-bottom: 24px;
    }
}

/* Loading States */
.loading-cities {
    position: relative;
}

.loading-cities::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Hover Effects */
.sophisticated-date-picker:hover .date-select,
.location-selector-container:hover .location-select:not(:disabled) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Focus Within Effects */
.sophisticated-field:focus-within .sophisticated-label {
    color: #d4af37;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
