/* Avyukt Dental Appointment System Styles */

/* Prevent the full-bleed container below from triggering a page-level
   horizontal scrollbar (100vw is wider than the viewport once the
   vertical scrollbar is accounted for). */
body {
    overflow-x: hidden;
}

.avyukt-dental-container {
    min-height: 80vh;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe800 50%, #fecaca00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    /* Break out of the theme's content column so the pink background spans
       the full browser viewport, while .screen below stays centered. */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.screen {
    display: none;
    width: 100%;
    max-width: 800px;
    background: #ffffff94;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    padding: 40px 30px;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 60px 50px;
    }
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.emoji-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .main-title {
        font-size: 24px;
    }
}

.subtitle {
    color: #6b7280;
    font-size: 18px;
    margin: 0;
}

.screen-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 20px 0 10px;
}

@media (max-width: 767px) {
    .screen-title {
        font-size: 20px;
    }
}

.options-grid {
    display: grid;
    gap: 16px;
}

.option-btn {
    width: 100%;
    padding: 24px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #db2777, #be185d);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.big-icon {
    width: 64px;
    height: 64px;
    color: #ec4899;
    margin: 0 auto 20px;
}

.option-text {
    text-align: left;
}

.option-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    opacity: 0.9;
}

.option-number {
    font-size: 32px;
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.primary-btn {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #db2777, #be185d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    padding: 16px 24px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #fbcfe8;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
}

.input-help {
    color: #6b7280;
    font-size: 14px;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* Field label (Age / Gender) - even rhythm with the other form screens:
   label sits tight above its control, groups are separated by 24px. */
.avyukt-field-label {
    display: block;
    text-align: left;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin: 8px 0;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .treatment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Age & Gender: keep the 3 options on a single, evenly spaced row on every
   screen size so it matches the desktop layout (no orphaned "Other" button). */
#gender-grid {
    grid-template-columns: repeat(3, 1fr);
}

.treatment-btn {
    padding: 16px;
    background: #fce7f3;
    color: #be185d;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.treatment-btn:hover {
    background: #fbcfe8;
}

.treatment-btn.selected {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border-color: #db2777;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.text-center {
    text-align: center;
}
.rupee {
  font-size: 32px;
  font-weight: 600;
}

.charges-rupee {
  color: #ec4899;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}


.success-icon {
    width: 96px;
    height: 96px;
    color: #10b981;
    margin: 0 auto 24px;
}

.success-details {
    background: #fce7f3;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.success-intro {
    font-size: 18px;
    color: #374151;
    margin-bottom: 16px;
}

.detail-item {
    color: #1f2937;
    margin: 8px 0;
    font-size: 16px;
}

.detail-item strong {
    color: #db2777;
}

.success-note {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 8px 0 0;
}

.timings-container {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .timings-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.timing-card {
    background: white;
    border: 2px solid #fbcfe8;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.timing-card.full-width {
    grid-column: 1 / -1;
}

.timing-label {
    color: #ec4899;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.timing-value {
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}

.timing-note {
    color: #6b7280;
    margin-top: 8px;
}

.location-card {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.location-title {
    color: #ec4899;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

.location-text {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 12px 0;
}

.location-landmark {
    color: #6b7280;
    margin: 12px 0 20px;
}

.map-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.charges-list {
    margin-bottom: 24px;
}

.charge-item {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.charge-name {
    color: #1f2937;
    font-weight: 700;
    font-size: 20px;
}

.charge-price {
    color: #ec4899;
    font-size: 28px;
    font-weight: 700;
}

.info-box {
    background: #dbeafe;
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 16px;
    color: #1e40af;
    text-align: center;
    margin-bottom: 24px;
}

.form-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    border: 2px solid #fbcfe8;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: #ec4899;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #fce7f3;
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 600;
}
.time-slots-container {
    margin-bottom: 24px;
}

.session-label {
    color: #ec4899;
    font-weight: 700;
    font-size: 18px;
    margin: 20px 0 12px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.time-slot-btn {
    padding: 16px 12px;
    background: #fce7f3;
    color: #be185d;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-btn:hover {
    background: #fbcfe8;
}

.time-slot-btn.selected {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border-color: #db2777;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}
#add-to-calendar {
    background: linear-gradient(135deg, #10b981, #059669);
}

#add-to-calendar:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* ── Free offer badge (stamp style) ─────────────────────────────── */
.avyukt-offer-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0 auto 24px;
    padding: 10px 22px;
    border: 2px dashed #059669;
    border-radius: 8px;
    color: #059669;
    background: #ecfdf5;
    transform: rotate(-3deg);
    text-align: center;
}

.avyukt-offer-badge-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.avyukt-offer-badge-sub {
    font-size: 11px;
    font-weight: 600;
    color: #047857;
    text-transform: none;
    letter-spacing: 0;
}

#welcome-screen .avyukt-offer-badge,
#confirm-booking .avyukt-offer-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 24px;
}

/* ── Slot availability legend + states ──────────────────────────── */
.slot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.slot-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.slot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.slot-dot-open { background: #fce7f3; border: 2px solid #ec4899; }
.slot-dot-partial { background: #fbbf24; }
.slot-dot-full { background: #1f2937; }

.slot-loading-msg {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin: 8px 0 0;
}

.slot-availability-warning {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.time-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.slot-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.time-slot-btn.slot-partial {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.time-slot-btn.slot-partial .slot-status {
    color: #b45309;
}

.time-slot-btn.slot-partial:hover {
    background: #fde68a;
}

.time-slot-btn.slot-full {
    background: #1f2937;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 1;
}

.time-slot-btn.slot-full .slot-status {
    color: #f87171;
}

.time-slot-btn.slot-full:hover {
    background: #1f2937;
    transform: none;
}

.time-slot-btn.slot-past {
    background: #f3f4f6;
    color: #b0b5bd;
    cursor: not-allowed;
    opacity: 0.65;
    text-decoration: line-through;
}

.time-slot-btn.slot-past .slot-status {
    color: #b0b5bd;
    text-decoration: none;
}

.time-slot-btn.slot-past:hover {
    background: #f3f4f6;
    transform: none;
}

.time-slot-btn:disabled {
    cursor: not-allowed;
}

/* ── Per-date offer note (shown after date is picked) ──────────────── */
.offer-date-note {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.offer-note-active {
    background: #ecfdf5;
    border: 2px dashed #059669;
    color: #047857;
}

.offer-note-expired {
    background: #fff7ed;
    border: 2px solid #fdba74;
    color: #9a3412;
}

/* ── Clinic-closed / holiday notice (shown on the time screen when the
   picked date is marked closed, and hides the slot grid underneath) ── */
.clinic-closed-notice {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
    border-radius: 12px;
    padding: 20px 18px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.clinic-closed-notice .closed-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
}

/* -- Mobile type scale (< 768px) -------------------------------
   Smaller, consistent font sizes for phones so every screen reads
   comfortably. Desktop sizes above are untouched. */
@media (max-width: 767px) {

    .content-wrapper {
        padding: 32px 20px;
    }

    .header-section {
        margin-bottom: 28px;
    }

    .big-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .success-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }

    .screen-title {
        font-size: 20px;
        margin: 16px 0 8px;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .option-btn {
        padding: 18px;
    }

    .option-content {
        gap: 14px;
    }

    .icon {
        width: 26px;
        height: 26px;
    }

    .option-title {
        font-size: 17px;
        margin-bottom: 3px;
    }

    .option-desc {
        font-size: 13px;
    }

    .option-number {
        font-size: 26px;
    }

    .primary-btn,
    .secondary-btn {
        font-size: 16px;
        padding: 14px 16px;
    }

    .form-input {
        font-size: 16px;
        padding: 14px;
        margin-bottom: 20px;
    }

    .form-textarea {
        font-size: 15px;
        min-height: 130px;
        margin-bottom: 20px;
    }

    .avyukt-field-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .input-help {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .treatment-grid {
        gap: 10px;
        margin-bottom: 20px;
    }

    .treatment-btn {
        font-size: 15px;
        padding: 14px 8px;
    }

    .time-slot-btn {
        font-size: 13px;
        padding: 13px 8px;
    }

    .slot-status {
        font-size: 10px;
    }

    .session-label {
        font-size: 15px;
        margin: 16px 0 10px;
    }

    .slot-legend {
        font-size: 12px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .slot-availability-warning,
    .clinic-closed-notice,
    .offer-date-note {
        font-size: 13px;
        padding: 10px 14px;
    }

    .success-details {
        padding: 18px;
        margin: 20px 0;
    }

    .success-intro {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .detail-item {
        font-size: 14px;
    }

    .success-note {
        font-size: 14px;
        line-height: 1.65;
    }

    .timing-card {
        padding: 18px;
    }

    .timing-label {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .timing-value {
        font-size: 20px;
        margin: 6px 0;
    }

    .location-card {
        padding: 22px;
    }

    .location-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .location-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .charge-item {
        padding: 18px;
    }

    .charge-name {
        font-size: 16px;
    }

    .charge-price {
        font-size: 22px;
    }

    .charges-rupee {
        font-size: 42px;
    }

    .info-box {
        font-size: 14px;
        padding: 14px;
    }

    .loading-overlay p {
        font-size: 16px;
    }

    #add-to-calendar,
    .whatsapp-btn {
        font-size: 14px;
        padding: 14px 8px;
    }

    .map-btn {
        padding: 14px;
        font-size: 15px;
    }
}
