/* PhoenixForge Meet — Frontend Booking Widget */

.pfmt-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.pfmt-title {
    margin-bottom: 6px;
}

.pfmt-desc {
    color: #555;
    margin-bottom: 20px;
}

/* ── Date bar ──────────────────────────────── */

.pfmt-date-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pfmt-week-labels {
    display: flex;
    flex: 1;
    gap: 4px;
}

.pfmt-day-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s;
}

.pfmt-day-btn:hover,
.pfmt-day-btn.is-active {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff;
}

.pfmt-day-btn.is-past {
    opacity: 0.4;
    cursor: not-allowed;
}

.pfmt-day-btn__day {
    font-weight: 600;
}

.pfmt-day-btn__date {
    font-size: 11px;
}

.pfmt-nav {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.pfmt-nav:hover {
    background: #f0f0f0;
}

/* ── Slot grid ─────────────────────────────── */

.pfmt-slots {
    min-height: 60px;
}

.pfmt-slots__prompt {
    color: #888;
    text-align: center;
    padding: 20px 0;
}

.pfmt-slots__loading {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

.pfmt-slots__none {
    color: #888;
    text-align: center;
    padding: 20px 0;
}

.pfmt-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.pfmt-slot-btn {
    padding: 10px 8px;
    border: 1px solid #3b5bdb;
    border-radius: 6px;
    background: #fff;
    color: #3b5bdb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.pfmt-slot-btn:hover {
    background: #3b5bdb;
    color: #fff;
}

/* ── Booking form ──────────────────────────── */

.pfmt-phase--form {
    padding-top: 4px;
}

.pfmt-back {
    background: none;
    border: none;
    color: #3b5bdb;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 12px;
}

.pfmt-back:hover {
    text-decoration: underline;
}

.pfmt-selected-slot {
    font-weight: 600;
    margin-bottom: 16px;
}

.pfmt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pfmt-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .pfmt-row--2 {
        grid-template-columns: 1fr;
    }
}

.pfmt-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pfmt-field label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.pfmt-field input,
.pfmt-field textarea {
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.15s;
}

.pfmt-field input:focus,
.pfmt-field textarea:focus {
    border-color: #3b5bdb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 91, 219, 0.15);
}

.pfmt-error {
    color: #d63638;
    font-size: 13px;
    margin: 0;
}

.pfmt-button {
    display: inline-block;
    padding: 11px 24px;
    background: #3b5bdb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.pfmt-button:hover {
    background: #2f4ac3;
    color: #fff;
}

.pfmt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pfmt-button--outline {
    background: #fff;
    color: #3b5bdb;
    border: 1px solid #3b5bdb;
}

.pfmt-button--outline:hover {
    background: #3b5bdb;
    color: #fff;
}

/* ── Confirmation card ─────────────────────── */

.pfmt-confirm-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.pfmt-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}

.pfmt-confirm-title {
    margin: 0 0 8px;
}

.pfmt-confirm-message {
    color: #555;
    margin-bottom: 8px;
}

.pfmt-confirm-ref {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.pfmt-ics-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

/* ── Virtual pages ─────────────────────────── */

.pfmt-virtual-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
}

.pfmt-ref {
    font-size: 13px;
    color: #555;
}

.pfmt-link {
    margin-left: 16px;
    font-size: 14px;
    color: #3b5bdb;
}

.pfmt-notice {
    color: #d63638;
    font-size: 14px;
}
