/* Global Styles Enhancement */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Enhanced Header */
header {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: 36px;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1f6a 0%, #1b45c3 45%, #2f7df2 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% -20%, rgba(255, 255, 255, 0.28), transparent 55%),
        radial-gradient(circle at 90% 110%, rgba(148, 197, 255, 0.35), transparent 70%),
        url("data:image/svg+xml,%3Csvg width='360' height='360' viewBox='0 0 360 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='40' cy='40' r='32'/%3E%3Ccircle cx='310' cy='140' r='38'/%3E%3Ccircle cx='200' cy='280' r='44'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px, 420px 420px, 360px 360px;
    background-position: -160px -140px, calc(100% + 120px) calc(100% + 120px), center;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3.5vw, 2.25rem);
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-logos {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1rem, 3vw, 1.8rem);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 30, 90, 0.85), rgba(15, 35, 105, 0.7));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 15px 32px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(8px);
}

.header-logos img {
    height: clamp(48px, 12vw, 70px);
    width: auto;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.3));
}

.header-text {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.6rem, 2vw, 1rem);
}

.header-text h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #f9fafb;
    text-shadow: 0 16px 30px rgba(10, 21, 55, 0.35);
}

.header-text h2 {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(226, 232, 240, 0.92);
}

/* Card Enhancement */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 1200px;
    flex: 1;
}

/* Progress Steps Enhancement */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.step.active {
    background-color: var(--primary-color);
    color: white;
}

.step.completed {
    background-color: var(--success-color);
    color: white;
}

.step.completed::after {
    content: '✓';
    position: absolute;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

/* Form Enhancement */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.hidden {
    display: none;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

/* Phone Input Enhancement */
.phone-input {
    display: flex;
    align-items: center;
}

.phone-prefix {
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.phone-input .form-control {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Button Enhancement */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    min-height: 44px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-left: 0.5rem;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background-color: #e5e7eb;
    transform: none;
}

/* Form Buttons Enhancement */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Location Enhancement */
#getLocation {
    width: 100%;
    margin-bottom: 1rem;
}

.location-status {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.status-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.status-indicator.searching {
    background-color: #fbbf24;
    animation: pulse 1.5s infinite ease-in-out;
}

.status-indicator.found {
    background-color: var(--success-color);
}

.status-indicator.error {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#locationMap {
    display: none;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

/* Camera Enhancement */
.camera-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

#videoElement, #capturedImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#canvasElement {
    display: none;
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
}

.camera-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Success Message Enhancement */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #1f2937;
}

/* Loading Overlay Enhancement */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.overlay.show {
    visibility: visible;
    opacity: 1;
}

.loading {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 48px !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
}

.select2-selection__arrow {
    height: 48px !important;
    right: 8px !important;
}

/* Tambahan untuk gambar ucapan */
.ucapan-img {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: cover;
    height: auto;
}

/* Mobile Responsive Enhancement */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 1.5rem;
    }

    .header-logos img {
        height: 45px;
        margin: 0 0.5rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    header {
        padding: 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }

    .step {
        width: 2.5rem;
        height: 2.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .form-buttons .btn {
        width: 100%;
    }

    .camera-container {
        height: 250px;
    }
}

/* Enhanced form layout for larger screens */
@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }

    header {
        padding: 2.5rem;
    }

    .card {
        padding: 2.5rem;
    }

    .form-group {
        margin-bottom: 1.75rem;
    }

    .progress-steps {
        margin-bottom: 3rem;
        max-width: 600px;
    }
}
.header-description {
    margin-top: 0.35rem;
    font-size: clamp(0.95rem, 2.6vw, 1.05rem);
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.86);
}

.banner-message {
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.banner-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.banner-message p {
    margin: 0;
    color: #4b5563;
}

.app-footer {
    text-align: center;
    margin: 2.5rem 0 1rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.app-footer p {
    margin: 0.25rem 0;
}

.app-footer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}
.banner-slider {
    width: calc(100% + 3rem);
    margin: 2rem -1.5rem 3rem;
}

.banner-slide {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    background: transparent;
}

.banner-slide-media {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .header-text h1 {
        font-size: 3.1rem;
    }

    .header-text h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    header {
        max-width: 100%;
        border-radius: 28px;
        padding: clamp(1.5rem, 6vw, 2.1rem) clamp(1.25rem, 5vw, 2rem);
    }

    .header-logos {
        padding: clamp(0.5rem, 2.5vw, 0.8rem) clamp(0.9rem, 4vw, 1.4rem);
        gap: clamp(0.75rem, 3vw, 1.4rem);
    }

    .header-text h1 {
        letter-spacing: 0.045em;
    }
}

@media (max-width: 480px) {
    header {
        border-radius: 22px;
        padding: 1.6rem 1.2rem;
    }

    .header-logos img {
        height: 48px;
    }

    .header-text h1 {
        font-size: clamp(1.65rem, 9vw, 1.9rem);
    }

    .header-text h2 {
        font-size: clamp(0.95rem, 4.5vw, 1.05rem);
    }
}
.public-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.public-nav__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.public-nav a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .public-nav__inner {
        justify-content: center;
        gap: 1rem;
        padding: 0.75rem;
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
}

.public-nav + .container {
    margin-top: 1.5rem;
}
