/* General Styling */
:root {
    --primary-color: #6a5acd; /* SlateBlue */
    --secondary-color: #483d8b; /* DarkSlateBlue */
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #333;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --green-color: #28a745;
    --blue-color: #007bff;
    --purple-color: #6f42c1;
    --gradient-bg: linear-gradient(135deg, #6a5acd 0%, #a486f5 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

.public-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: var(--gradient-bg);
    color: #fff;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.hero-section {
    text-align: center;
    padding: 2rem 1rem;
}
.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}
.hero-section p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.main-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.panel-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.panel-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #fff;
}
.icon-buat { background-color: var(--green-color); }
.icon-lacak { background-color: var(--blue-color); }
.icon-login { background-color: var(--purple-color); }

.panel-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}
.panel-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    flex-grow: 1;
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    text-align: left;
    font-size: 0.9rem;
    flex-grow: 1;
}
.checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.checklist li svg {
    color: var(--green-color);
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    width: 90%;
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    margin-top: auto;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-green { background-color: var(--green-color); box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2); }
.btn-blue { background-color: var(--blue-color); box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); }
.btn-purple { background-color: var(--purple-color); box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2); }

.track-form-in-card {
    margin-top: auto;
    width: 100%;
}
.track-form-in-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.stats-container {
    background: var(--gradient-bg);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
}
.stats-container h3 {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.stat-item {
    padding: 1rem;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}
.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.info-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}
.info-container h3 {
    text-align: center;
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.info-item h4 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.info-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--light-text);
}
.info-item ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}
.info-item ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.public-footer {
    text-align: center;
    padding: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}
.public-footer p {
    margin: 0.5rem 0;
}

/* --- STYLES FOR form_tiket.php, cek_status.php --- */
.section-card, .status-page-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.section-card h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}
.section-card > p {
    text-align: center;
    color: var(--light-text);
    margin-top: 0;
    margin-bottom: 2rem;
}
.ticket-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.ticket-form .form-group {
    flex: 1;
    min-width: 250px;
}
.ticket-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.ticket-form input, .ticket-form select, .ticket-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}
.ticket-form input:focus, .ticket-form select:focus, .ticket-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}
.ticket-form button {
    width: 100%;
}
.back-link-container {
    text-align: center;
    margin-top: 2rem;
}
.back-link-container .btn {
    width: auto;
}
.btn-secondary {
    background: none;
    color: var(--light-text);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--dark-text);
    transform: none;
    box-shadow: none;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: 500;
    border-radius: 12px;
    padding: 1rem;
    margin: 0 0 2rem 0;
}

/* --- STYLES FOR STATUS PAGE --- */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.status-header-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}
.status-header-info p {
    margin: 0;
    color: var(--light-text);
}
.status-badge-wrapper {
    text-align: right;
}
.status-badge-wrapper span {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}
.status-badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    font-size: 1rem;
    text-transform: capitalize;
}
.status-Baru { background-color: var(--blue-color); }
.status-Diproses-Tim-Kerja { background-color: #ffc107; color: var(--text-color); }
.status-Menunggu-Respon-Pemohon { background-color: #dc3545; }
.status-Selesai { background-color: #28a745; }
.status-Ditolak { background-color: #6c757d; }

.timeline {
    position: relative;
    padding-left: 50px;
    border-left: 3px solid var(--light-gray);
}
.timeline-item {
    margin-bottom: 2rem;
}
.timeline-icon {
    position: absolute;
    left: -27px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.timeline-icon.user { background-color: var(--dark-gray); }
.timeline-icon.petugas { background-color: var(--green-color); }
.timeline-content {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.timeline-header strong {
    font-size: 1.1rem;
}
.timeline-time {
    font-size: 0.9rem;
    color: var(--light-text);
}
.timeline-body p {
    margin: 0.5rem 0;
}
.reply-form-container, .survey-form-container {
    margin-top: 2rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background-color: #fdfdff;
    border-radius: 12px;
}
.reply-form-container h4, .survey-form-container h4 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
}
.reply-form-container textarea, .survey-form-container textarea, .survey-form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}
.reply-form-container textarea:focus, .survey-form-container textarea:focus, .survey-form-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}
.reply-form-container button, .survey-form-container button {
    width: auto;
    padding: 12px 30px;
    float: right;
}

.survey-form-container.submitted {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
}
