/* Calenderly Booking Widget — Cal.com-inspired Design */
.calenderly-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
}

/* Loading */
.calenderly-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}
.calenderly-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: calenderly-spin 0.6s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes calenderly-spin {
    to { transform: rotate(360deg); }
}

/* Step indicator */
.calenderly-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
.calenderly-step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
}
.calenderly-step-dot--active {
    background: #0d9488;
    color: #fff;
}
.calenderly-step-dot--done {
    background: #0d9488;
    color: #fff;
}
.calenderly-step-dot--upcoming {
    background: #f3f4f6;
    color: #9ca3af;
}
.calenderly-step-line {
    width: 3rem;
    height: 2px;
    background: #e5e7eb;
    border-radius: 1px;
}
.calenderly-step-line--done {
    background: #0d9488;
}

/* Step 1: Service cards */
.calenderly-services {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .calenderly-services {
        grid-template-columns: repeat(3, 1fr);
    }
}
.calenderly-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.calenderly-service-card:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13,148,136,0.08);
}
.calenderly-service-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}
.calenderly-service-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.calenderly-service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}
.calenderly-service-meta .duration {
    color: #374151;
}
.calenderly-service-meta .price {
    color: #0d9488;
}
.calenderly-service-meta .price--free {
    color: #0d9488;
    background: #f0fdfa;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Step 2: Calendar + slots — side by side on desktop */
.calenderly-datetime {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .calenderly-datetime {
        grid-template-columns: 1fr 1fr;
    }
}

/* Calendar */
.calenderly-calendar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .calenderly-calendar {
        border-right: 1px solid #f3f4f6;
        padding-right: 1.5rem;
    }
}
.calenderly-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.calenderly-calendar-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.calenderly-calendar-nav {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    font-size: 1rem;
    transition: color 0.15s;
    border-radius: 0.375rem;
}
.calenderly-calendar-nav:hover {
    color: #0d9488;
    background: #f0fdfa;
}
.calenderly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.calenderly-calendar-grid .day-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    padding: 0.5rem 0;
}
.calenderly-calendar-grid .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 50%;
    cursor: default;
    color: #d1d5db;
    transition: all 0.15s;
}
.calenderly-calendar-grid .day--available {
    color: #111827;
    cursor: pointer;
    font-weight: 600;
}
.calenderly-calendar-grid .day--available:hover {
    background: #f0fdfa;
    color: #0d9488;
}
.calenderly-calendar-grid .day--selected,
.calenderly-calendar-grid .day--selected:hover {
    background: #0d9488 !important;
    color: #fff !important;
    font-weight: 700;
}
.calenderly-calendar-grid .day--today:not(.day--selected) {
    border: 2px solid #e5e7eb;
    font-weight: 700;
    color: #0d9488;
}
/* No dots — available dates shown by bold weight + dark color */
.calenderly-calendar-grid .day--available::after {
    display: none;
}
.calenderly-calendar-grid .day--selected::after {
    display: none;
}

/* Time slots */
.calenderly-slots {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 26rem;
    overflow-y: auto;
}
.calenderly-slots::-webkit-scrollbar {
    width: 4px;
}
.calenderly-slots::-webkit-scrollbar-track {
    background: transparent;
}
.calenderly-slots::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}
.calenderly-slots h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
    text-transform: none;
    letter-spacing: 0;
}
.calenderly-slots-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 1024px) {
    .calenderly-slots-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
.calenderly-slot {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    transition: all 0.15s;
}
.calenderly-slot:hover {
    border-color: #0d9488;
    color: #0d9488;
    background: #f0fdfa;
}
.calenderly-slot--selected {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.calenderly-slots-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 3rem 1rem;
}

/* Step 3: Form */
.calenderly-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 36rem;
    margin: 0 auto;
}
.calenderly-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.calenderly-summary h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}
.calenderly-summary p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0;
}
.calenderly-field {
    margin-bottom: 1.25rem;
}
.calenderly-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}
.calenderly-field input,
.calenderly-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    transition: all 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.calenderly-field input:focus,
.calenderly-field textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.calenderly-field .optional {
    font-weight: 400;
    color: #9ca3af;
}
.calenderly-field .error-msg {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Buttons */
.calenderly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.calenderly-btn--primary {
    background: #0d9488;
    color: #fff;
    width: 100%;
}
.calenderly-btn--primary:hover {
    background: #0f766e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.calenderly-btn--primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}
.calenderly-btn--back {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.calenderly-btn--back:hover {
    color: #0d9488;
}

/* Confirmation */
.calenderly-confirmation {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
}
.calenderly-confirmation .checkmark {
    width: 3.5rem;
    height: 3.5rem;
    background: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.calenderly-confirmation .checkmark svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #fff;
}
.calenderly-confirmation h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}
.calenderly-confirmation > p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0.25rem 0;
}

/* Error */
.calenderly-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Nav */
.calenderly-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Privacy */
.calenderly-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 1rem;
}
.calenderly-privacy a {
    color: #0d9488;
    text-decoration: underline;
}
