/* ============================================================
   Servis.ai Demo Scheduler — Modal Styles
   All classes prefixed with .servis- to avoid theme conflicts
   ============================================================ */

.servis-modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 11, 34, 0.4);
    overflow: auto;
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servis-modal.show {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.servis-modal-content {
    position: relative;
    border-radius: 10px;
    background-color: #040B22;
    box-shadow: 0 0px 18px rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    animation: servisSlideIn 0.5s ease-out;
}

.servis-modal-content h2 {
    font-size: 1.5rem;
}

@keyframes servisSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── Close button ── */
.servis-close {
    position: absolute;
    text-align: center;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: background 0.3s;
}
.servis-close:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Back button ── */
.servis-back-button {
    position: absolute;
    left: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 29px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    transition: background 0.3s;
    background: transparent;
    color: white;
    padding: 0;
    line-height: 0;
    padding-bottom: 5px;
}
.servis-back-button:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Utility ── */
.hidden    { display: none; }
.fade-out  { opacity: 0; }

.servis-calendar-container,
.servis-form-container,
.servis-final-message {
    transition: opacity 0.5s ease-in-out;
}

/* ── Calendar ── */
.servis-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 350px;
    margin: 20px auto;
}

.servis-day {
    color: #040B22;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}
.servis-day-label {
    color: #01D7B8;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    font-weight: bold;
    background: transparent;
    cursor: default;
}
.servis-day:hover {
    color: #06E775;
    background: #0C2F3B;
}
.servis-day.weekend {
    color: #bbb;
    background: rgba(255, 255, 255, 0) !important;
    cursor: not-allowed;
    border: 1px solid #bbb !important;
}
.servis-day.past {
    color: #bbb;
    background: rgba(255, 255, 255, 0.213);
    cursor: not-allowed;
}
.servis-day.selected {
    background-image: linear-gradient(90deg, #06E775 0%, #01D7B8 70%);
    border: 1px solid #06E775;
    color: #040B22;
}
.servis-empty-day {
    padding: 10px;
    border-radius: 5px;
    color: #bbb;
    background: rgba(255, 255, 255, 0.213);
    cursor: not-allowed;
}

/* ── Time grid ── */
.servis-time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    max-width: 350px;
    margin: 20px auto;
}
.servis-time-slot {
    color: #040B22;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}
.servis-time-slot.selected {
    background-image: linear-gradient(90deg, #06E775 0%, #01D7B8 70%);
    border: 1px solid #06E775;
    color: #040B22;
}
.servis-time-slot:hover {
    color: #06E775;
    background: #0C2F3B;
}
.servis-time-slot.disabled {
    color: #bbb;
    background: rgba(255, 255, 255, 0.213);
    cursor: not-allowed;
}

#time-container h2,
.servis-time-container h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 5px;
}

/* ── Timezone note ── */
.servis-timezone-note {
    font-size: 0.9em;
    color: #06E775;
    margin-bottom: 15px;
    text-align: center;
}

/* ── Form ── */
.servis-form-container {
    opacity: 0;
    text-align: center;
}
.servis-form-container.show { opacity: 1; }
.servis-form-container h2 {
    font-size: 1.1rem;
    text-align: center;
}
.servis-form-container input,
.servis-form-container textarea {
    font-size: 0.9rem;
    margin-bottom: 14px;
    padding: 0.3rem 0.5rem !important;
}

#selected-date {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #06E775;
    text-align: center;
}

.servis-error {
    color: #ff7777;
    margin-top: -6px;
    margin-bottom: 4px;
    display: flex;
    font-size: 0.9rem;
    top: -7px;
    position: relative;
}

/* ── Submit button ── */
.servis-submit-btn {
    background-color: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #040b22;
    background-image: linear-gradient(90deg, #06e775 0%, #01d7b8 70%);
    border: 3px solid #06e775;
    border-radius: 50px;
    padding: 10px;
    width: 205px;
    max-width: 100%;
    cursor: pointer;
    margin-bottom: 10px;
}
.servis-submit-btn:hover {
    background-image: linear-gradient(250deg, #06e775 0%, #01d7b8 100%);
    border-color: #01d7b8;
}

/* ── Final message ── */
.servis-final-message {
    opacity: 0;
    text-align: center;
    color: white;
    margin-bottom: 15px;
}
.servis-final-message.show { opacity: 1; }
.servis-final-message h2 { color: #FFF; text-align: center; margin-bottom: 15px; }
.servis-final-message p  { font-size: 1rem; color: white; text-align: center; margin-bottom: 10px; }

#final_time {
    color: #01D7B8;
    margin-bottom: 15px;
    display: inline-block;
}

/* ── Cookie warning ── */
.servis-cookie-warning { color: white; text-align: center; padding: 10px; margin-bottom: 10px; }
.servis-cookie-warning h2 { color: white; text-align: center; margin-bottom: 15px; }
.servis-cookie-warning p  { font-size: 0.9rem; color: white; text-align: center; margin-bottom: 0; }
.servis-time-reminder { font-size: 0.9rem; margin-bottom: 10px; color: #06E775; text-align: center; }

/* ── Powered by ── */
.servis-powered { text-align: center; font-size: 0.8rem; }
.servis-powered img { width: 70px; }

/* ── Responsive ── */
@media screen and (max-width: 500px) {
    .servis-day       { padding: 0; }
    .servis-day-label { padding: 0; }
    .servis-calendar-container h2,
    .servis-time-container h2 { font-size: 1.2rem; }
}
