/* Guided Tour Booking Engine — Frontend Styles (Widget & Confirmation Page) */

.gtb-widget-container,
.gtb-widget-container * {
    box-sizing: border-box;
}

.gtb-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 28px;
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    margin: 24px auto;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

@media (max-width: 600px) {
    .gtb-widget-container {
        padding: 18px 16px;
        border-radius: 12px;
        margin: 16px auto;
    }
}

.gtb-widget-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.gtb-widget-header h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}

.gtb-meeting-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334155;
}

.gtb-meeting-box a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.gtb-meeting-box a:hover {
    text-decoration: underline;
}

.gtb-section {
    margin-bottom: 22px;
}

.gtb-section-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.gtb-select,
.gtb-input,
.gtb-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.gtb-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.gtb-select:focus,
.gtb-input:focus,
.gtb-textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.gtb-tier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gtb-tier-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gtb-tier-card.is-active {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

@media (max-width: 440px) {
    .gtb-tier-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .gtb-qty-controls {
        justify-content: flex-end;
    }
}

.gtb-tier-info {
    flex: 1;
    min-width: 0;
}

.gtb-tier-name {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.gtb-tier-price {
    font-size: 0.9rem;
    color: #0284c7;
    font-weight: 700;
}

.gtb-tier-sub {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.gtb-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gtb-qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.gtb-qty-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.gtb-qty-btn:active {
    background: #e2e8f0;
}

.gtb-tier-qty {
    width: 54px !important;
    height: 38px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 4px !important;
    -moz-appearance: textfield;
}

.gtb-tier-qty::-webkit-outer-spin-button,
.gtb-tier-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gtb-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 14px 18px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.05rem;
}

.gtb-total-bar strong {
    font-size: 1.3rem;
    color: #38bdf8;
}

.gtb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gtb-contact-full {
    grid-column: 1 / -1;
}

@media (max-width: 540px) {
    .gtb-contact-grid {
        grid-template-columns: 1fr;
    }
}

.gtb-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.gtb-submit-btn:hover {
    background: #0369a1;
}

.gtb-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gtb-form-feedback {
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Wizualny kalendarz (Datepicker) + Kafelki godzin */
.gtb-cal-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.gtb-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gtb-cal-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: #0f172a;
    text-transform: capitalize;
}

.gtb-cal-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.gtb-cal-nav-btn:hover {
    background: #e2e8f0;
}

.gtb-cal-weekdays,
.gtb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.gtb-cal-weekdays span {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.gtb-cal-day {
    height: 38px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    user-select: none;
    position: relative;
}

.gtb-cal-day.is-empty {
    pointer-events: none;
}

.gtb-cal-day.is-disabled {
    color: #cbd5e1;
    background: transparent;
    cursor: default;
}

.gtb-cal-day.is-available {
    background: #ffffff;
    color: #0f172a;
    border-color: #bae6fd;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
    transition: all 0.15s ease;
}

.gtb-cal-day.is-available::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #16a34a;
    margin-top: 2px;
}

.gtb-cal-day.is-available:hover {
    background: #e0f2fe;
    border-color: #0284c7;
}

.gtb-cal-day.is-selected {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.3);
}

.gtb-cal-day.is-selected::after {
    background: #ffffff;
}

.gtb-timeslots-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.gtb-timeslots-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.gtb-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
}

.gtb-timeslot-pill {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.gtb-timeslot-pill:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.gtb-timeslot-pill.is-selected {
    border: 2px solid #0284c7;
    background: #eff6ff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.14);
}

.gtb-ts-time {
    font-weight: 700;
    font-size: 0.98rem;
    color: #0f172a;
}

.gtb-ts-meta {
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 600;
    margin-top: 2px;
}

/* Strona potwierdzenia rezerwacji (Confirmation Page) */
.gtb-confirm-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    max-width: 960px;
    margin: 0 auto;
}

.gtb-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.gtb-status-banner.is-confirmed {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.gtb-status-banner.is-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.gtb-status-banner.is-cancelled {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.gtb-confirm-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 780px) {
    .gtb-confirm-grid {
        grid-template-columns: 1fr;
    }
}

.gtb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.gtb-card h2 {
    margin: 0 0 18px 0;
    font-size: 1.3rem;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.gtb-info-list {
    display: grid;
    grid-template-columns: 165px 1fr;
    row-gap: 14px;
    column-gap: 12px;
    font-size: 0.98rem;
}

@media (max-width: 520px) {
    .gtb-info-list {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .gtb-info-value {
        margin-bottom: 10px;
    }
}

.gtb-info-label {
    color: #64748b;
    font-weight: 500;
}

.gtb-info-value {
    color: #0f172a;
    font-weight: 600;
}

.gtb-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    background: #eff6ff;
    color: #0284c7 !important;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

.gtb-map-btn:hover {
    background: #e0f2fe;
}

.gtb-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.93rem;
}

.gtb-items-table th,
.gtb-items-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.gtb-items-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.gtb-qr-card {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px dashed #0284c7;
}

.gtb-qr-img {
    width: 180px;
    height: 180px;
    margin: 10px auto;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.gtb-ref-badge {
    display: inline-block;
    margin: 8px 0 16px 0;
    padding: 6px 14px;
    background: #0f172a;
    color: #ffffff;
    font-family: monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
    border-radius: 8px;
    font-weight: 700;
}

.gtb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.gtb-btn-primary,
.gtb-btn-secondary {
    display: inline-block;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gtb-btn-primary {
    background: #0284c7;
    color: #ffffff !important;
    border: none;
}

.gtb-btn-secondary {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.gtb-btn-primary:hover,
.gtb-btn-secondary:hover {
    opacity: 0.9;
}
