/* Custom Select Styles - iOS/Material Design inspired */

.custom-select-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 16px 48px 16px 16px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.custom-select:hover {
    border-color: var(--border-medium);
    background: var(--bg-secondary);
}

.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: var(--bg-card);
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-select:focus ~ .custom-select-wrapper::after,
.custom-select-wrapper:has(.custom-select:focus)::after {
    border-color: var(--primary);
}

/* Radio Button Cards - iOS Style */
.radio-card-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.radio-card {
    position: relative;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.radio-card:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.radio-card.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.15);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.radio-card-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.radio-card-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.radio-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-card:hover .radio-card-check {
    border-color: var(--primary);
}

.radio-card.selected .radio-card-check {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-card.selected .radio-card-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Segmented Control - iOS Style */
.segmented-control {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.segmented-option {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.segmented-option:hover {
    color: var(--text-primary);
}

.segmented-option.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Form Input */
.form-input-enhanced {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input-enhanced:hover {
    border-color: var(--border-medium);
}

.form-input-enhanced:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-input-enhanced::placeholder {
    color: var(--text-muted);
}

/* Form Label Enhanced */
.form-label-enhanced {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Number Stepper - iOS Style */
.number-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.number-stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-stepper-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.number-stepper-btn:active {
    transform: scale(0.95);
}

.number-stepper-value {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
