/* ==========================================================================
   RPSTicketing - Public-Facing Styles
   Clean, minimal design for ticket submission & status pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout: Sticky Footer Pattern
   -------------------------------------------------------------------------- */
body.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public-page main {
    flex: 1;
}

body.public-page footer {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Public Header
   -------------------------------------------------------------------------- */
.public-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.public-header .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Ticket Submission Form
   -------------------------------------------------------------------------- */
.ticket-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.ticket-form-wrapper .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.ticket-form-wrapper .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.ticket-form-wrapper .form-control,
.ticket-form-wrapper .form-select {
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border-color: #ced4da;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ticket-form-wrapper .form-control:focus,
.ticket-form-wrapper .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.ticket-form-wrapper textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.ticket-form-wrapper .form-text {
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Success Page - Animated Check Icon
   -------------------------------------------------------------------------- */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.success-page .success-card {
    max-width: 520px;
    margin: 0 auto;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.08);
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #d1e7dd;
    color: #198754;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-page .ticket-ref {
    display: inline-block;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Status Lookup Page
   -------------------------------------------------------------------------- */
.status-lookup-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.status-lookup-wrapper .input-group {
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
}

.status-lookup-wrapper .form-control {
    border-right: none;
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

/* --------------------------------------------------------------------------
   Status Result Page
   -------------------------------------------------------------------------- */
.status-result-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.status-result-wrapper .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.status-timeline {
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: "";
    position: absolute;
    left: 0.65rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background-color: #dee2e6;
}

.status-timeline .timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.status-timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.status-timeline .timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #adb5bd;
    border: 2px solid #fff;
}

.status-timeline .timeline-item.current .timeline-dot {
    background-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.status-timeline .timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.status-timeline .timeline-text {
    font-size: 0.875rem;
    color: #212529;
}

/* --------------------------------------------------------------------------
   Public Footer
   -------------------------------------------------------------------------- */
.public-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* --------------------------------------------------------------------------
   Mobile Spacing
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ticket-form-wrapper,
    .status-lookup-wrapper,
    .status-result-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }

    .success-page .success-card .card-body {
        padding: 1.5rem;
    }

    .status-timeline {
        padding-left: 1.75rem;
    }
}
