/* Index */
.complaint-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    padding: 60px 20px;
}

.complaint-container {
    max-width: 800px;
    margin: 0 auto;
}

.complaint-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.complaint-header .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 40px;
}

.complaint-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.complaint-header p {
    font-size: 16px;
    opacity: 0.95;
}

.complaint-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 25px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
}

.info-box .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.6;
}

.form-area {
    padding: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .required {
    color: #f44336;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
}

.success-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.success-content h2 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 24px;
}

.success-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ticket-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.ticket-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    font-family: "Courier New", monospace;
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    color: white;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .complaint-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .complaint-wrapper {
        padding: 40px 15px;
    }
}

/* tracking */
.track-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    padding: 60px 20px;
}

.track-container {
    max-width: 700px;
    margin: 0 auto;
}

.track-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.track-header .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 40px;
}

.track-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.track-header p {
    font-size: 16px;
    opacity: 0.95;
}

.track-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.search-form {
    margin-bottom: 30px;
}

.search-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Courier New", monospace;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result-card {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.result-card.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ticket-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    font-family: "Courier New", monospace;
    margin-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    margin-top: 20px;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-diproses {
    background: #d1ecf1;
    color: #0c5460;
}

.status-selesai {
    background: #d4edda;
    color: #155724;
}

.complaint-detail {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.detail-title {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-content {
    line-height: 1.8;
    color: #666;
}

.response-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.response-box h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.error-message {
    display: none;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-top: 20px;
}

.error-message.show {
    display: block;
}

.example-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #1565c0;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .track-header h1 {
        font-size: 28px;
    }

    .search-group {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .track-card {
        padding: 25px;
    }
}
