
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary: #889977;
    --primary-dark: #6f7f61;
    --primary-light: #eef1ea;
    --text-main: #333;
    --text-muted: #888;
    --border: #e0e0e0;
    --danger: #c0392b;
}

* {
    box-sizing: border-box;
}

input,
button,
select,
textarea {
    font-family: inherit;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f7f7f5;
    display: flex;
    justify-content: center;
    padding: 40px 10px;
    margin: 0;
    color: var(--text-main);
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.logo {
    display: block;
    max-width: 90px;
    margin: 0 auto 16px auto;
}

.step-indicator {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
    text-align: center;
}

.step-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 22px;
    color: var(--primary-dark);
}

/* فرم‌ها */
label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-main);
}

input[type="text"],input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    background: #fafafa;
    transition: border-color 0.2s;
}

input[type="text"],input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

/* دکمه‌ی اصلی */
button, .btn-primary {
    margin-top: 24px;
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover, .btn-primary:hover {
    background: var(--primary-dark);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* کارت‌های انتخاب خدمت */
.service-item {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.service-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-item input[type="radio"] {
    margin-left: 8px;
    accent-color: var(--primary);
}

.service-name {
    font-size: 15px;
    font-weight: bold;
}

.service-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ==========================
   دسته‌بندی خدمات
========================== */

.service-category {
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.service-category:first-child {
    margin-top: 0;
}

.service-category-title {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.service-category .service-item {
    margin: 0;
    border: none;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 0;
    background: transparent;
}

.service-category .service-item:last-child {
    border-bottom: none;
}

.service-category .service-item:hover {
    background: #f8faf6;
}

.service-item input[type="radio"]:checked + .service-content {
    color: var(--primary-dark);
}

.service-content {
    display: flex;
    flex-direction: column;
}

.service-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.service-item:has(input[type="radio"]:checked) {
    background: var(--primary-light);
}

.service-item:has(input[type="radio"]:checked) .service-name {
    color: var(--primary-dark);
}

/* تاریخ و ساعت */
.date-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.slot-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.slot-item:hover {
    border-color: var(--primary);
}

.slot-item.disabled {
    background: #f2f2f2;
    color: #bbb;
    cursor: not-allowed;
    border-color: #eee;
}

.slot-item.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* خلاصه‌ی تایید نهایی */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-label {
    color: var(--text-muted);
    font-size: 14px;
}

.summary-value {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-main);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fafafa inset;
    -webkit-text-fill-color: var(--text-main);
    transition: background-color 5000s ease-in-out 0s;
}

/* --- ریسپانسیو موبایل: پنل ادمین --- */
@media (max-width: 700px) {
    .hour-row {
        flex-direction: column;
    }

    .slots-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .note-box textarea {
        height: 60px;
    }

    .panel-wrapper {
        padding: 0 4px;
    }
}

@media (max-width: 420px) {
    .slots-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .slot-card {
        min-height: 70px;
        padding: 8px;
        font-size: 12px;
    }

    .hour-block {
        padding: 12px;
    }
}

/*for date in iphone se*/

@media (max-width: 360px) {
    .slots-grid {
        gap: 6px;
    }

    .slot-item {
        padding: 8px 4px;
        font-size: 12px;
    }
}