/* ── Google Calendar Booking Plugin ── */

.gcal-booking-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

.gcal-hidden { display: none !important; }

/* Step titles */
.gcal-step-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}
.gcal-step-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

/* ── Week nav ── */
.gcal-calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.gcal-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #333;
}
.gcal-nav-btn:hover { background: #f5f5f5; }
.gcal-week-label {
    font-size: 13px;
    color: #666;
    flex: 1;
}

/* ── Day strip ── */
.gcal-day-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}
.gcal-day-btn {
    min-width: 58px;
    padding: 10px 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.gcal-day-btn:hover:not(:disabled) { border-color: #aaa; background: #fafafa; }
.gcal-day-btn.gcal-day-selected { border: 2px solid #1a1a1a; font-weight: 600; }
.gcal-day-btn.gcal-day-past { opacity: .35; cursor: not-allowed; }
.gcal-day-num  { display: block; font-size: 20px; font-weight: 600; }
.gcal-day-name { display: block; font-size: 11px; color: #888; }
.gcal-day-month{ display: block; font-size: 11px; color: #aaa; }

/* ── Slots ── */
.gcal-slots-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.gcal-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.gcal-slot-btn {
    padding: 9px 4px;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    color: #1a1a1a;
    transition: border-color .15s, background .15s;
}
.gcal-slot-btn:hover { background: #f5f5f5; border-color: #aaa; }
.gcal-slot-btn.gcal-slot-selected { border: 2px solid #1a1a1a; font-weight: 600; }
.gcal-slots-hint {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #999;
    padding: 16px 0;
}
.gcal-slots-hint.gcal-loading { color: #888; }
.gcal-slots-hint.gcal-error   { color: #c0392b; }

/* ── Buttons ── */
.gcal-step-footer { margin-top: 8px; }

.gcal-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s;
}
.gcal-btn-primary:hover:not(:disabled) { opacity: .85; }
.gcal-btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.gcal-btn-secondary {
    display: inline-block;
    padding: 9px 20px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.gcal-btn-secondary:hover { background: #f5f5f5; }

/* Spinner */
.gcal-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gcal-spin .7s linear infinite;
    display: inline-block;
}
@keyframes gcal-spin { to { transform: rotate(360deg); } }

/* ── Back link ── */
.gcal-back-link {
    display: inline-block;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    margin-bottom: 14px;
    background: none;
    border: none;
    padding: 0;
}
.gcal-back-link:hover { color: #1a1a1a; }

/* ── Selected slot badge ── */
.gcal-selected-slot-badge {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    margin-bottom: 18px;
}

/* ── Form ── */
.gcal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.gcal-form-group { margin-bottom: 14px; }
.gcal-form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}
.gcal-form-group .req { color: #c0392b; }
.gcal-optional { color: #aaa; font-size: 12px; }
.gcal-form-group input,
.gcal-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    color: #1a1a1a;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s;
}
.gcal-form-group input:focus,
.gcal-form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}
.gcal-form-group textarea { resize: vertical; min-height: 72px; }

.gcal-error-msg {
    background: #fdf0f0;
    border: 1px solid #f5c6c6;
    border-radius: 7px;
    color: #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* ── Thank You ── */
.gcal-thankyou-wrap { text-align: center; padding: 1rem 0; }

.gcal-check-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #e8f8f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #27ae60;
}
.gcal-check-circle svg { width: 26px; height: 26px; }

.gcal-ty-tag {
    display: inline-block;
    background: #e8f8f1;
    color: #1e8449;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.gcal-ty-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.gcal-ty-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.6;
}

.gcal-confirm-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: left;
}
.gcal-confirm-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.gcal-confirm-row:last-child { border-bottom: none; }
.gcal-confirm-row span:first-child { color: #888; }
.gcal-confirm-row span:last-child  { font-weight: 600; color: #1a1a1a; }

.gcal-meet-link {
    display: inline-block;
    margin-bottom: 14px;
    padding: 9px 20px;
    background: #1a73e8;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .15s;
}
.gcal-meet-link:hover { opacity: .85; color: #fff; }

.gcal-ty-hint {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}
