/* Styling for the Repair Cafe Registration Form widget */

/* Editor preview styles */
.rc-form-widget-editor {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
    padding: 10px;
    border: 1px dashed #ccc;
    background-color: #f9f9f9;
}

/* Frontend form styling */
.rc-form-widget {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fdfdfd;
}

.rc-form-widget label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.rc-form-widget input,
.rc-form-widget textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rc-form-widget textarea {
    resize: vertical;
}

.rc-form-widget .rc-form-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.rc-form-widget .rc-form-submit:hover {
    background-color: #005177;
}
.calendar-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.calendar-month {
    font-size: 1.2rem;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    width: 100%;
}

.calendar-day-header,
.calendar-day {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: bold;
}

.calendar-day {
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.available:hover {
    background: #c3e6cb;
}

.calendar-day.inactive {
    background: #fff;
    color: lightgray;
    cursor: not-allowed;
}

.calendar-empty-cell {
    visibility: hidden;
}

.loading-text {
    text-align: center;
    font-size: 1rem;
    color: #6c757d;
    margin: 20px 0;
}

.error-text {
    text-align: center;
    font-size: 1rem;
    color: #dc3545;
    margin: 20px 0;
}
.time-slot {
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.time-slot:hover {
    background-color: #e6f7ff;
}

.time-slot.selected-slot {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.time-slot.unavailable-slot {
    background-color: #f0f0f0;
    color: #a0a0a0;
    cursor: not-allowed;
    border-color: #ddd;
}

/* General form styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 15px 15px;
    font-size: 1.0rem;
    border: 1px solid #ccc;
    border-radius: 0px; /* Adjust for rounded corners or use 0 for square corners */
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 0px;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Adjust field sizes */
.form-group input {
    height: 35px; /* Make input fields larger */
}

/* Highlight invalid fields */
.invalid-input {
    border-color: red;
    outline: none;
}

/* Style error messages */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

  /* line 51, ../sass/_forms.scss */
 .dropdown-icon-1689 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -14em 0em;
    display: inline-block;
  }
  /* line 57, ../sass/_forms.scss */
 .dropdown-icon-1677 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -18em 0em;
    display: inline-block;
  }
  /* line 63, ../sass/_forms.scss */
 .dropdown-icon-1679 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -15em 0em;
    display: inline-block;
  }
  /* line 69, ../sass/_forms.scss */
 .dropdown-icon-1690 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -17em 0em;
    display: inline-block;
  }
  /* line 75, ../sass/_forms.scss */
 .dropdown-icon-1691 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -24em 0em;
    display: inline-block;
  }
  /* line 81, ../sass/_forms.scss */
 .dropdown-icon-1678 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -20em 0em;
    display: inline-block;
  }
  /* line 87, ../sass/_forms.scss */
 .dropdown-icon-5343 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -22em 0em;
    display: inline-block;
  }
  /* line 93, ../sass/_forms.scss */
 .dropdown-icon-1683 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -23em 0em;
    display: inline-block;
  }
  /* line 99, ../sass/_forms.scss */
 .dropdown-icon-1685 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -25em 0em;
    display: inline-block;
  }
  /* line 105, ../sass/_forms.scss */
 .dropdown-icon-1692 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -19em 0em;
    display: inline-block;
  }
  /* line 111, ../sass/_forms.scss */
 .dropdown-icon-1693 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -16em 0em;
    display: inline-block;
  }
  /* line 117, ../sass/_forms.scss */
 .dropdown-icon-1684 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -21em 0em;
    display: inline-block;
  }
  /* line 125, ../sass/_forms.scss */
 .dropdown-icon-18666,
 .dropdown-icon-17006,
 .dropdown-icon-18706 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -27em 0em;
    display: inline-block;
}
  /* line 133, ../sass/_forms.scss */
 .dropdown-icon-18667,
 .dropdown-icon-17007,
 .dropdown-icon-18707 {
    font-size: 25px;
    background-image: url(./img/icon_grid.svg?v=2);
    background-size: 28em 5em;
    width: 1em;
    height: 1em;
    background-position: -26em 0em;
    display: inline-block;
}
  /* Custom dropdown container */
.custom-dropdown {
    position: relative;
    display: inline-block;
    max-width: 350px;
    width: 100%;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

/* Dropdown selected option */
.dropdown-selected {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    user-select: none;
    position: relative; /* For chevron positioning */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: space-between; /* Push chevron to the right */
}

/* Chevron icon using ::after */
.dropdown-selected::after {
    content: ""; /* Placeholder for the chevron */
    display: inline-block;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    transform: rotate(135deg); /* Rotate to create a chevron */
    margin-left: 8px auto;
    color: #000;
    border-color: #999; /* Chevron color */
}

/* Dropdown options container */
.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px; /* Limit height and make it scrollable */
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 10;
    list-style: none; /* Remove list item bullet points */
    margin: 0;
    padding: 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dropdown options when open */
.custom-dropdown.open .dropdown-options {
    display: block;
}

/* Dropdown items */
.dropdown-options li {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px; /* Add spacing between icon and text */
    border-bottom: 1px solid #eee; /* Add a divider between items */
}

/* Last item border removal */
.dropdown-options li:last-child {
    border-bottom: none;
}

/* Hover effect */
.dropdown-options li:hover {
    background-color: #f0f0f0;
}

