/* ==========================================================
   THANK YOU / BOOKING CONFIRMATION PAGE
   Изворно: public.css

   Стилови за страницата по успешна/неуспешна резервација
   (.balkanea-thankyou-wrapper) — loading overlay, booking
   summary, payment details, cancellation policy, action
   buttons, contact section, error state.
   ========================================================== */

.page-title {
    display: none;
}

.balkanea-thankyou-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    width: 100%;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-weight: 600;
}

.loading-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* NB: @keyframes spin веќе постои во hotel.css (Section 2, .btn-cancel.loading).
   Идентичен е (rotate 360deg), значи безбедно е да не се дуплира тука -
   ако сакаш build system да не се жали за duplicate keyframes, отстрани
   го еден од двата - зачувај го оној во hotel.css бидејќи е "поблиску"
   до неговата употреба. */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.booking-header {
    text-align: center;
    padding: 48px 32px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.booking-header.success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.booking-header.error {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.status-badge {
    display: inline-block;
}

.status-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    line-height: 64px;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

.booking-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.booking-summary {
    padding: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-item {
    flex: 1;
}

.summary-item h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.05em;
    margin: 0;
}

.hotel-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
}

.room-type {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.payment-details {
    padding: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.payment-details h3 {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #64748b;
}

.value {
    font-weight: 600;
    color: #1e293b;
}

.cancellation-policy {
    padding: 32px;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-bottom: 1px solid #e2e8f0;
}

.cancellation-policy h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
}

.cancellation-policy p {
    margin: 0 0 8px;
    color: #1e293b;
}

.policy-note {
    font-size: 14px;
    color: #64748b;
}

.action-section {
    padding: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.contact-section {
    padding: 32px;
    text-align: center;
    background: #f8fafc;
}

.contact-section h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.contact-section p {
    margin: 0 0 20px;
    color: #64748b;
}

.contact-methods {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    color: #475569;
    font-size: 14px;
}

.contact-item strong {
    color: #1e293b;
}

.error-message {
    padding: 32px;
    text-align: center;
}

.error-message h3 {
    margin: 0 0 16px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.error-message ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 8px;
    color: #64748b;
}

/* ==========================================================
   THANK YOU PAGE RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .balkanea-thankyou-wrapper {
        padding: 12px;
    }

    .booking-header {
        padding: 32px 20px 24px;
    }

    .booking-header h1 {
        font-size: 24px;
    }

    .status-icon {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 24px;
    }

    .summary-row {
        flex-direction: column;
        gap: 20px;
    }

    .account-number {
        font-size: 18px;
    }

    .total-amount {
        font-size: 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .booking-summary,
    .payment-details,
    .cancellation-policy,
    .action-section,
    .contact-section {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 24px;
    }

    .booking-header h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }
}