/* 基础变量 */
:root {
    --primary: var(--bs-primary);
    --border: var(--bs-gray-300);
    --text: var(--bs-body-color);
    --text-light: var(--bs-gray-600);
    --white: var(--bs-white);
}

/* Radio组样式 */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.discount-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Radio按钮样式 */
.radio_type {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0;
    margin-right: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.radio_type:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    transition: all 0.2s ease;
}

.radio_type:checked:before {
    border-color: var(--primary);
}

.radio_type:checked:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.2s ease;
}

/* 标签样式 */
.form-check label {
    color: var(--text-light);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    margin: 0;
}

.radio_type:checked + label {
    color: var(--primary);
}

/* 输入框组样式 */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: var(--bs-gutter-y);
}

.input-group .form-control {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0.75rem;
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    background-color: var(--bs-white);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.25rem;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: var(--bs-body-font-size);
    font-weight: 400;
    line-height: var(--bs-body-line-height);
    color: var(--bs-gray-700);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.25rem;
}

/* 飞机费输入框样式 */
.col-md-4 .input-group {
    width: 100%;
    margin-bottom: 0.5rem;
}

.col-md-4 .input-group .form-control {
    width: auto;
    flex: 1;
}

.col-md-4 .input-group .form-control[type="number"] {
    flex: none;
    width: 120px;
}

/* 禁用状态 */
.radio_type:disabled,
.radio_type:disabled + label,
.form-control:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* 修复输入框组的边框重叠问题 */
.input-group > :not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 输入框焦点状态 */
.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-white);
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 日期类型选择器样式 */
.day-type-select {
    border: none;
    background: transparent;
    font-size: var(--bs-body-font-size);
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    color: var(--bs-body-color);
}

.day-type-select:focus {
    outline: none;
    box-shadow: none;
}

.input-group-text .form-select {
    width: auto;
    min-width: 80px;
}