/**
 * 洗車計費設定頁：洗車優惠、方案卡片與 Modal 樣式
 * 字型檔置於 public/fonts（相對於此 CSS 之路徑為 ../fonts/）
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2');
}

.form-check {
    display: inline;
    margin: 0 10px 0 0;
}

.enable {
    margin-right: 10px;
}

.wash-plan-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(45, 47, 47, 0.08);
}

.wash-plan-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.wash-plan-section__intro {
    min-width: 0;
}

.wash-plan-section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #2d2f2f;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.wash-plan-section__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #5a5c5c;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
    max-width: 36rem;
}

.wash-plan-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.wash-plan-btn-primary {
    background: #dc3545;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    padding: 0.85rem 2.25rem;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wash-plan-btn-primary:hover {
    color: #fff;
    filter: brightness(0.97);
    transform: scale(0.98);
}

.wash-plan-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wash-plan-card {
    position: relative;
    background: #f6f6f6;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    border: 1px solid transparent;
}

.wash-plan-card:hover {
    box-shadow: 0 8px 20px rgba(45, 47, 47, 0.08);
    border-color: rgba(247, 182, 15, 0.3);
}

.wash-plan-card__watermark {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    font-size: 3.75rem;
    line-height: 1;
    color: #eaab00;
    opacity: 0.12;
    pointer-events: none;
}

.wash-plan-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.wash-plan-card__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.wash-plan-card__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: rgba(250, 185, 20, 0.2);
    color: #f7b60f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    flex-shrink: 0;
}

.wash-plan-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #2d2f2f;
    margin: 0;
    line-height: 1.25;
}

.wash-plan-card__code {
    font-family: 'Inter', sans-serif;
    color: #5a5c5c;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.wash-plan-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.wash-plan-card__price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #f7b60f;
    line-height: 1.1;
}

.wash-plan-card__actions {
    display: flex;
    gap: 0.75rem;
}

.wash-plan-icon-btn {
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 12px;
    background: #e1e3e3;
    color: #2d2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.wash-plan-icon-btn:hover {
    background: rgba(247, 182, 15, 0.12);
    color: #775600;
}

.wash-plan-icon-btn--danger:hover {
    background: rgba(249, 86, 48, 0.15);
    color: #b02500;
}

.wash-plan-empty {
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #5a5c5c;
    padding: 2.5rem 1rem;
    margin: 0;
}

.wash-plan-modal .modal-dialog {
    max-width: 42rem;
    margin: 1.75rem auto;
}

.wash-plan-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.wash-plan-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2.25rem;
    border-bottom: 1px solid rgba(172, 173, 173, 0.12);
    background: #fff;
}

.wash-plan-modal__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d2f2f;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wash-plan-modal__close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: #5a5c5c;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.wash-plan-modal__close:hover {
    background: #e1e3e3;
    color: #2d2f2f;
}

.wash-plan-modal-close-icon {
    font-weight: 300;
}

.wash-plan-modal__body {
    padding: 2.25rem;
    background: #fff;
    max-height: min(72vh, 560px);
    overflow-y: auto;
}

.wash-plan-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2.25rem;
    background: #f6f6f6;
    border-top: 1px solid rgba(172, 173, 173, 0.12);
}

.wash-plan-field {
    margin-bottom: 1.75rem;
}

.wash-plan-field:last-of-type {
    margin-bottom: 0;
}

.wash-plan-field__label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2f2f;
    margin-bottom: 0.65rem;
}

.wash-plan-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #2d2f2f;
    background: #f0f1f1;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.95rem 1.35rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wash-plan-input::placeholder {
    color: #9c9d9d;
}

.wash-plan-input:focus {
    outline: none;
    border-color: #775600;
    box-shadow: 0 0 0 3px rgba(119, 86, 0, 0.12);
}

.wash-plan-input:disabled {
    opacity: 0.88;
    cursor: not-allowed;
}

.wash-plan-input.is-invalid {
    border-color: #b02500;
}

.wash-plan-input-wrap {
    position: relative;
}

.wash-plan-input-wrap .wash-plan-input {
    padding-left: 3.75rem;
}

.wash-plan-input-wrap__prefix {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #5a5c5c;
    pointer-events: none;
}

.wash-plan-modal__btn-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.85rem;
    border-radius: 12px;
    border: 1px solid rgba(172, 173, 173, 0.35);
    background: #fff;
    color: #5a5c5c;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.wash-plan-modal__btn-secondary:hover {
    background: #f0f1f1;
    color: #2d2f2f;
}

.wash-plan-modal__btn-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.95rem;
    border-radius: 12px;
    border: none;
    background: #dc3545;
    color: #fff;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.wash-plan-modal__btn-primary:hover {
    filter: brightness(1.03);
    color: #fff;
}

.wash-plan-field .invalid-feedback {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.wash-discount-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(45, 47, 47, 0.08);
    margin-bottom: 1.5rem;
}

.wash-discount-section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #2d2f2f;
    letter-spacing: -0.02em;
    margin: 0 0 2rem 0;
    line-height: 1.2;
}

.wash-discount-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: #f6f6f6;
    border-radius: 12px;
}

.wash-discount-toggle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wash-discount-toggle-row__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2f2f;
    margin: 0;
}

.wash-discount-toggle-row__side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wash-discount-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
    flex-shrink: 0;
}

.wash-discount-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wash-discount-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.35s;
    border-radius: 40px;
}

.wash-discount-slider:before {
    position: absolute;
    content: '';
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.35s;
    border-radius: 50%;
}

.wash-discount-switch input:checked + .wash-discount-slider {
    background-color: #f7b60f;
}

.wash-discount-switch input:checked + .wash-discount-slider:before {
    transform: translateX(40px);
}

.wash-discount-switch input:focus-visible + .wash-discount-slider {
    outline: 2px solid #775600;
    outline-offset: 2px;
}

.wash-discount-config {
    margin-top: 0.25rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e1e3e3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wash-discount-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d2f2f;
}

.wash-discount-line__note {
    font-size: 1rem;
    font-weight: 500;
    color: #5a5c5c;
}

.wash-discount-num {
    width: 5rem;
    max-width: 100%;
    height: 3.5rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2f2f;
    background: #fff;
    border: 2px solid rgba(172, 173, 173, 0.45);
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wash-discount-num:focus {
    outline: none;
    border-color: #f7b60f;
    box-shadow: 0 0 0 3px rgba(247, 182, 15, 0.2);
}

.wash-discount-num.is-invalid {
    border-color: #b02500;
}

.wash-discount-actions {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
}

.wash-discount-submit {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: #dc3545;
    transition: transform 0.12s ease, filter 0.15s ease;
}

.wash-discount-submit:hover {
    color: #fff;
    filter: brightness(1.03);
    transform: scale(0.99);
}

.validateError {
    margin-top: 0.5rem;
}
