/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Bea Cukai RHF Airport)
   ========================================================================== */
:root {
    --primary: #0f1c3f;        /* Deep Navy Blue */
    --primary-light: #1b2e61;  /* Lighter Navy */
    --accent: #d4af37;         /* Official Gold/Brass */
    --accent-hover: #bda030;   /* Gold Hover state */
    --success: #10b981;        /* Emerald Green */
    --warning: #f59e0b;        /* Amber Warning */
    --danger: #ef4444;         /* Rose Red */
    --bg-light: #f8fafc;       /* Slate White */
    --text-dark: #0f172a;      /* Slate Dark */
    --text-muted: #64748b;     /* Slate Gray */
    --white: #ffffff;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* ==========================================================================
   SPLIT SCREEN LAYOUT
   ========================================================================== */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Left Hero Section */
.split-left {
    position: relative;
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
    color: var(--white);
    background-color: var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 28, 63, 0.82) 0%, rgba(15, 28, 63, 0.55) 50%, rgba(212, 175, 55, 0.12) 100%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transform: scale(1.05);
    animation: zoomBackground 20s infinite alternate ease-in-out;
}

@keyframes zoomBackground {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-logo-container {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.hero-logo-container svg {
    width: 100%;
    height: 100%;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-bottom-text {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-bottom-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-bottom-text p {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Right Content Section */
.split-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--white);
    overflow-y: auto;
    padding: 3rem;
}

.form-wrapper {
    max-width: 480px;
    width: 100%;
    margin: auto;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 28, 63, 0.05);
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
}

.form-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-logo svg {
    width: 65px;
    height: 65px;
}

.form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.form-header h1 span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

/* ==========================================================================
   TABS FOR SERVICES
   ========================================================================== */
.tabs-navigation {
    display: flex;
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition-normal);
    font-family: var(--font-sans);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 46, 97, 0.1);
}

.input-wrapper input:focus + svg,
.input-wrapper select:focus + svg,
.input-wrapper textarea:focus + svg {
    color: var(--primary-light);
}

/* Input validations states */
.form-group.error input {
    border-color: var(--danger);
    background-color: #fef2f2;
}

.form-group.error svg {
    color: var(--danger) !important;
}

.error-message {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.form-group.error .error-message {
    display: block;
}

/* Checkbox and Grid layouts inside form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 28, 63, 0.15);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 28, 63, 0.25);
    background: linear-gradient(135deg, var(--primary) 0%, #080f24 100%);
}

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

.btn-submit svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   FOOTER LINKS & COPYRIGHT
   ========================================================================== */
.form-footer-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-footer-links a {
    font-weight: 600;
    color: var(--primary-light);
}

.page-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
    font-size: 0.8rem;
}

.page-footer-links a {
    color: var(--text-muted);
}

.page-footer-links a:hover {
    color: var(--primary-light);
}

.page-footer-links .dot {
    color: #cbd5e1;
    user-select: none;
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   MODAL - UNDER MAINTENANCE (SYSTEM UPDATE)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 28, 63, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon.warning {
    background-color: #fef3c7;
    color: var(--warning);
}

.modal-icon.warning svg {
    width: 35px;
    height: 35px;
}

.modal-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modal-content p strong {
    color: var(--primary-light);
}

.modal-sub {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    background: var(--bg-light);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.btn-modal-close {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-close:hover {
    background-color: var(--primary-light);
}

.btn-modal-close svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   STANDARD PAGES (Syarat & Ketentuan, Privacy, Hubungi Kami)
   ========================================================================== */
.standard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-light);
}

.standard-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.standard-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standard-header .brand svg {
    width: 38px;
    height: 38px;
}

.standard-header .brand-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.standard-header .back-link {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.standard-header .back-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.standard-header .back-link svg {
    width: 14px;
    height: 14px;
}

.standard-container {
    max-width: 800px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

.standard-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.standard-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
}

.standard-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 2rem 0 0.75rem;
}

.standard-content p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
}

.standard-content ul, .standard-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-dark);
}

.standard-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Info Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 28, 63, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.contact-map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 250px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

/* Tablet & Smaller Desktops (Under 1024px) */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }
    
    .split-left {
        flex: none;
        height: 40vh;
        min-height: 350px;
        padding: 2.5rem;
    }
    
    .split-right {
        flex: none;
        padding: 3rem 1.5rem;
    }
    
    .hero-bottom-text h2 {
        font-size: 2rem;
    }
    
    .hero-bottom-text p {
        font-size: 0.95rem;
    }
}

/* Mobile Screens (Under 768px) */
@media (max-width: 768px) {
    .split-left {
        height: 35vh;
        min-height: 280px;
        padding: 2rem 1.5rem;
    }
    
    .hero-bottom-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-bottom-text p {
        font-size: 0.85rem;
    }
    
    .form-card {
        padding: 1.5rem;
        box-shadow: none;
        border: none;
    }
    
    .form-header h1 {
        font-size: 1.35rem;
    }
    
    .tabs-navigation {
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .standard-header {
        padding: 1rem;
    }
    
    .standard-header .brand-title {
        font-size: 0.9rem;
    }
    
    .standard-header .back-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .standard-container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .standard-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
    
    .standard-card h1 {
        font-size: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-map-wrapper {
        height: 200px;
    }
}

/* ===== Logo images (Direktorat Jenderal Bea dan Cukai) ===== */
.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.form-logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
}
.standard-header .brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}
