/* 1. Define the local font files */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


/* 2. Apply the font to the whole page */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

/* Ensure all form elements use the font */
input, textarea, button, select, legend, label {
    font-family: 'Vazirmatn', sans-serif;
}


.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 0;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #3498db;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: #34495e;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

textarea {
    resize: vertical;
}

.total-cost-group input {
    background-color: #ecf0f1;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    border: none;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #27ae60;
}

/* --- FIX FOR DATEPICKER --- */
/* Ensure datepicker appears on top of other elements */
.jdp-container {
    z-index: 9999 !important;
}
.form-group {
    display: flex;
    flex-direction: column;
}

#customer_search_results {
    max-height: 200px;
    overflow-y: auto;
}

#service_category_selectors .service-category-select {
    margin-bottom: 1rem;
}
