/* ====================================
   RESET & BASICS
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e4e4e7;
    line-height: 1.6;
}

/* ====================================
   COLOR & ACCENT
   ==================================== */

:root {
    --accent: #10b981;
    --accent-dark: #059669;
    --bg-primary: #0a0a0a;
    --bg-secondary: #16161a;
    --bg-tertiary: #27272a;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1a6;
    --border: #27272a;
    --error: #ef4444;
    --success: #10b981;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================
   HEADER / NAVIGATION
   ==================================== */

.header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

/* ====================================
   WHATSAPP FLOATING BUTTON
   ==================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    z-index: 99;
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* ====================================
   MAIN CONTENT
   ==================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding: 80px 0;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* ====================================
   FORM STYLES
   ==================================== */

.order-form {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

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

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.optional {
    color: var(--text-secondary);
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: var(--bg-tertiary);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
}

.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.form-error {
    display: block;
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

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

/* ====================================
   TOGGLE OPTIONS
   ==================================== */

.paket-type-toggle {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.toggle-option input:checked ~ span {
    background: var(--accent);
    color: white;
}

/* ====================================
   KAPASITAS OPTIONS
   ==================================== */

.kapasitas-options {
    display: flex;
    gap: 16px;
}

.option-label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.option-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.option-label input:checked ~ span {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.option-label:hover span {
    border-color: var(--accent);
}

.option-price {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.option-label input:checked ~ span .option-price {
    color: var(--accent);
    font-weight: 600;
}

/* ====================================
   SELECT ELEMENT
   ==================================== */

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23a1a1a6' d='M4.5 6L8 10l3.5-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-input:hover {
    border-color: var(--accent);
}

/* ====================================
   ORDER SUMMARY
   ==================================== */

.order-summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.summary-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-item span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.summary-harga {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

/* ====================================
   SUBMIT BUTTON
   ==================================== */

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
}

.submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
}

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

.submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-text {
    flex: 1;
}

.btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* ====================================
   INFO BOX
   ==================================== */

.info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 48px;
}

.info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ====================================
   HIDDEN CLASS
   ==================================== */

.hidden {
    display: none !important;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .back-link {
        order: -1;
        flex: 1;
    }

    .form-title {
        font-size: 32px;
    }

    .form-subtitle {
        font-size: 16px;
    }

    .main-content {
        padding: 60px 0;
    }

    .kapasitas-options {
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-section {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }

    .footer-section:last-child {
        border-bottom: none;
    }
}

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

    .form-header {
        margin-bottom: 40px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-subtitle {
        font-size: 15px;
    }

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

    .order-summary {
        padding: 20px;
        margin: 32px 0;
    }

    .paket-type-toggle {
        gap: 8px;
        padding: 4px;
    }

    .toggle-option span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .info-box {
        padding: 20px;
    }
}

/* ====================================
   UTILITY
   ==================================== */

a, button {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--accent);
    color: white;
}
