/*
Theme Name: Kasteek Pay
Theme URI: https://gadai.kasteek.com
Author: Kasteek Team
Author URI: https://kasteek.com
Description: Tema khusus untuk layanan gadai Kasteek Pay - Responsive & Mobile Friendly
Version: 1.0.0
License: GPL v2 or later
Text Domain: kasteek
*/

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --secondary: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --light: #f9fafb;
    --dark: #111827;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-content {
    flex: 1;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: #fff; }
.bg-dark { background-color: var(--dark); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--dark);
    border-color: var(--border);
}

.btn-light:hover {
    background-color: var(--light);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    gap: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.form-error {
    border-color: var(--danger) !important;
}

.form-error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-primary {
    background-color: rgba(26, 86, 219, 0.1);
    border-color: rgba(26, 86, 219, 0.2);
    color: var(--primary);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--light);
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--light);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    background-color: var(--light);
    color: var(--dark);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: var(--dark);
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

.badge-light {
    background-color: var(--light);
    color: var(--dark);
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: block;
    height: 48px;
    width: auto;
}

.site-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; }

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.mobile-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-navigation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-navigation-overlay.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu li {
    margin-bottom: 1rem;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

#mobile-menu a:hover {
    color: var(--primary);
}

.mobile-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path fill="%231a56db" fill-opacity="0.05" d="M0 0h800v600H0z"/><circle cx="700" cy="100" r="80" fill="%231a56db" fill-opacity="0.05"/><circle cx="650" cy="300" r="120" fill="%231a56db" fill-opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-title .text-primary {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-feature-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.hero-feature-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 1rem;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    margin: 0;
}

.step-arrow {
    display: none;
    position: absolute;
    top: 30px;
    right: -30px;
    color: var(--primary);
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path fill="white" fill-opacity="0.05" d="M0 0h800v600H0z"/><circle cx="100" cy="100" r="80" fill="white" fill-opacity="0.05"/><circle cx="150" cy="300" r="120" fill="white" fill-opacity="0.05"/></svg>');
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Legal Notice */
.legal-notice {
    padding: 3rem 0;
    background: white;
}

.notice-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
}

.notice-box h4 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notice-box h4 i {
    font-size: 1.5rem;
}

.notice-box p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Calculator */
.calculator-section {
    padding: 5rem 0;
    background: var(--light);
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-tabs {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.calculator-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calculator-tab.active {
    background: var(--primary);
    color: white;
}

.calculator-tab:hover:not(.active) {
    background: var(--light);
}

.calculator-content {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.calculator-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light), #e2e8f0);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.calculator-result h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.result-details {
    display: grid;
    gap: 1rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding-top: 1rem;
    color: var(--primary);
}

.result-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.875rem;
}

/* Quick Calculator */
.quick-calculator {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.quick-calculator h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Form Pengajuan */
.pengajuan-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--primary);
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(26, 86, 219, 0.02);
}

.file-upload i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.file-upload p {
    color: var(--gray);
    margin: 0 0 1rem 0;
}

.file-upload input[type="file"] {
    display: none;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.agreement-box {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.agreement-box p {
    margin: 0 0 1rem 0;
    color: var(--gray);
    font-size: 0.875rem;
}

.agreement-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
}

.footer-main {
    padding: 4rem 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget-area {
    display: flex;
    flex-direction: column;
}

.footer-widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-widget p:last-child {
    margin-bottom: 0;
}

#footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu li {
    margin-bottom: 0.75rem;
}

#footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#footer-menu a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

.legal-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    width: 100%;
}

.legal-warning small {
    color: rgba(255, 193, 7, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 2rem;
}

/* Legal Banner */
.legal-banner {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #92400e;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    text-align: center;
}

.legal-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.legal-banner i {
    font-size: 1.25rem;
}

.legal-banner small {
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

.dashboard-sidebar {
    width: 280px;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

.dashboard-nav {
    padding: 1.5rem 0;
    flex-grow: 1;
}

.dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-nav li {
    margin: 0;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dashboard-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dashboard-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.dashboard-nav i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.2);
    color: white;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.content-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.pending { background: #fbbf24; color: #92400e; }
.stat-icon.active { background: #10b981; color: #064e3b; }
.stat-icon.completed { background: #3b82f6; color: #1e3a8a; }
.stat-icon.total { background: #8b5cf6; color: #4c1d95; }

.stat-info {
    flex-grow: 1;
}

.stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.table-responsive {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.dashboard-table th {
    font-weight: 600;
    background: var(--light);
    color: var(--dark);
}

.dashboard-table tbody tr:hover {
    background: var(--light);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.publish { background: #d1fae5; color: #064e3b; }
.status-badge.approved { background: #dbeafe; color: #1e3a8a; }
.status-badge.active { background: #f3e8ff; color: #6b21a8; }
.status-badge.completed { background: #dcfce7; color: #166534; }
.status-badge.defaulted { background: #fee2e2; color: #991b1b; }

.btn-view, .btn-print {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--light);
    color: var(--dark);
    border-color: var(--border);
}

.btn-view:hover {
    background: var(--border);
}

.btn-print {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    margin-left: 0.5rem;
}

.btn-print:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.25rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .hero-features { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    
    .mobile-menu-toggle { display: block; }
    .main-navigation { display: none; }
    .header-cta { display: none; }
    
    .dashboard-wrapper { flex-direction: column; }
    .dashboard-sidebar { width: 100%; }
    .dashboard-nav ul { display: flex; overflow-x: auto; }
    .dashboard-nav li { flex-shrink: 0; }
    .dashboard-nav a { border-left: none; border-bottom: 3px solid transparent; }
    .dashboard-nav li.active a { border-left-color: transparent; border-bottom-color: var(--primary); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .section-title { font-size: 1.75rem; }
    .hero-features { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
    
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
    
    .calculator-form { grid-template-columns: 1fr; }
    .stats-cards { grid-template-columns: 1fr 1fr; }
    
    .step-arrow {
        display: block;
        position: static;
        transform: rotate(90deg);
        margin: 1rem auto;
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .hero-section { padding: 3rem 0; }
    .features-section { padding: 3rem 0; }
    .how-it-works { padding: 3rem 0; }
    .cta-section { padding: 3rem 0; }
    
    .container { padding: 0 20px; }
    .calculator-content { padding: 1.5rem; }
    .pengajuan-form { padding: 1.5rem; }
    .dashboard-content { padding: 1rem; }
    
    .stats-cards { grid-template-columns: 1fr; }
    .stat-card { flex-direction: column; text-align: center; }
    
    .mobile-navigation { width: 100%; }
}

/* Print Styles */
@media print {
    .site-header,
    .legal-banner,
    .hero-cta,
    .features-section,
    .how-it-works,
    .cta-section,
    .legal-notice,
    .site-footer,
    .whatsapp-float,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a { color: black !important; text-decoration: none !important; }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}