/* ========================================
   REQUEST ROOM - STYLE
   ======================================== */

/* --- FONT LOCAL --- */
@font-face {
    font-family: 'GoogleSansCode';
    src: url('../fonts/GoogleSansCode-VariableFont_MONO,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- ROOT VARIABLES --- */
:root {
    --font-primary: 'GoogleSansCode', 'Courier New', monospace;
    --font-heading: 'GoogleSansCode', 'Courier New', monospace;
    --font-body: 'GoogleSansCode', 'Courier New', monospace;
    
    --bg-primary: #0a0e14;
    --bg-secondary: #0f1820;
    --bg-card: #141e28;
    --bg-card-hover: #1a2835;
    --text-primary: #d4e8f0;
    --text-secondary: #8ab4c8;
    --text-cyan: #00d4ff;
    --text-cyan-light: #66e5ff;
    --border-color: #1a2a38;
    --border-cyan: rgba(0, 212, 255, 0.25);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* --- CONTAINER UTAMA --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   NAVIGASI
   ======================================== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0;
}

.top-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.top-nav .nav-logo .logo-icon {
    font-size: 24px;
}

.top-nav .nav-logo .logo-text {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-cyan), var(--text-cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.top-nav .nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.top-nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 4px 10px;
    border-radius: 6px;
}

.top-nav .nav-links a:hover {
    color: var(--text-cyan);
    background: rgba(0, 212, 255, 0.06);
}

.top-nav .nav-links a.active {
    color: var(--text-cyan);
    background: rgba(0, 212, 255, 0.08);
}

/* ========================================
   HEADER BANNER 720x90 (LINK)
   ======================================== */
.header-banner-link {
    display: block;
    max-width: 720px;
    margin: 0 auto 16px;
    text-decoration: none;
}

.header-banner-link:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.header-banner {
    width: 100%;
    height: 90px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.header-banner img,
.header-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-banner .banner-placeholder {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.header-banner .banner-placeholder span {
    display: block;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

/* ========================================
   CONTENT WRAPPER (Form + Sidebar)
   ======================================== */
.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* --- FORM CONTAINER (Utama) --- */
.form-container {
    flex: 1;
    min-width: 0;
}

/* --- SIDEBAR WRAPPER --- */
.sidebar-wrapper {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-cyan);
    text-align: center;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border-cyan);
    border-radius: 8px;
    letter-spacing: 1px;
}

.sidebar-title .title-icon {
    font-size: 16px;
}

.sidebar-title .title-text {
    background: linear-gradient(135deg, var(--text-cyan), var(--text-cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-banner {
    width: 100%;
    min-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-banner img,
.sidebar-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-link:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.sidebar-banner .banner-placeholder {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding: 20px 10px;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
}

.sidebar-banner .banner-placeholder span {
    writing-mode: horizontal-tb;
    display: block;
    font-size: 11px;
    opacity: 0.5;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* ========================================
   FORM WRAPPER
   ======================================== */
.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-cyan), transparent);
}

/* --- IFRAME --- */
.form-iframe {
    width: 100%;
    min-height: 650px;
    border: none;
    border-radius: 8px;
    background: transparent;
    display: none;
}

/* --- LOADING --- */
.form-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-family: var(--font-body);
    gap: 16px;
}

.form-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--text-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-loading .loading-text {
    font-size: 15px;
    color: var(--text-secondary);
}

.form-loading .loading-sub {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* --- NOTICE --- */
.form-notice {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-cyan);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-notice:hover {
    border-color: var(--text-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.form-notice .icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-notice .notice-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-notice a {
    color: var(--text-cyan);
    text-decoration: none;
    font-weight: 500;
}

.form-notice a:hover {
    text-decoration: underline;
}

/* --- TOMBOL --- */
.btn-hunt {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--text-cyan);
    border-radius: 10px;
    background: transparent;
    color: var(--text-cyan);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-body);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-hunt:hover {
    background: var(--text-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--text-cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-cyan-light);
    border-color: var(--text-cyan-light);
    color: var(--bg-primary);
}

.btn-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-cyan);
    color: var(--text-cyan);
    background: transparent;
    box-shadow: none;
}

.btn-support {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-support:hover {
    background: #ff6b6b;
    color: var(--bg-primary);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
    border-color: #ff6b6b;
}

.btn-support .heart {
    display: inline-block;
    animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-actions .btn-hunt {
    flex: 1;
    text-align: center;
    min-width: 150px;
    padding: 12px 24px;
    font-size: 14px;
}

/* --- BACK LINK --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-body);
    transition: color 0.3s ease;
    margin-top: 20px;
}

.back-link:hover {
    color: var(--text-cyan);
}

/* ========================================
   FOOTER DENGAN SOSIAL MEDIA
   ======================================== */
.footer {
    margin-top: 40px;
    padding: 32px 0 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--text-cyan);
    color: var(--text-cyan);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-body);
    opacity: 0.7;
}

.footer-copy a {
    color: var(--text-cyan);
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE - DESKTOP & MOBILE
   ======================================== */

/* Tablet & HP Besar (≤992px) */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-wrapper {
        width: 100%;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0;
    }

    .sidebar-title {
        font-size: 12px;
        padding: 4px 14px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 80px;
    }

    .sidebar-banner {
        min-height: 80px;
        max-height: 100px;
        flex: 1;
        width: auto;
        border-radius: 8px;
    }

    .sidebar-link {
        width: 100%;
        height: 100%;
    }

    .sidebar-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* HP Sedang (≤768px) */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 16px;
    }

    .top-nav .nav-logo {
        justify-content: center;
        font-size: 18px;
    }

    .top-nav .nav-links {
        justify-content: center;
        gap: 8px;
    }

    .top-nav .nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .header-banner-link {
        max-width: 100%;
    }

    .header-banner {
        height: 60px;
    }

    .sidebar-wrapper {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .sidebar-title {
        font-size: 11px;
        padding: 4px 10px;
        min-width: 60px;
        border-radius: 6px;
    }

    .sidebar-banner {
        min-height: 70px;
        max-height: 85px;
        border-radius: 6px;
    }

    .form-wrapper {
        padding: 16px;
        min-height: 400px;
        border-radius: 10px;
    }

    .form-iframe {
        min-height: 550px;
    }

    .form-loading {
        padding: 40px 16px;
    }

    .form-loading .spinner {
        width: 32px;
        height: 32px;
    }

    .form-notice {
        font-size: 13px;
        padding: 14px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .form-actions .btn-hunt {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 13px;
        flex: 1 1 100%;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* HP Kecil (≤480px) */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .top-nav {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .top-nav .nav-logo {
        font-size: 16px;
    }

    .top-nav .nav-logo .logo-icon {
        font-size: 20px;
    }

    .top-nav .nav-links {
        gap: 4px;
    }

    .top-nav .nav-links a {
        font-size: 12px;
        padding: 3px 6px;
    }

    .header-banner {
        height: 50px;
    }

    .sidebar-wrapper {
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }

    .sidebar-title {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 50px;
        border-radius: 4px;
        letter-spacing: 0.5px;
    }

    .sidebar-title .title-icon {
        font-size: 12px;
    }

    .sidebar-banner {
        min-height: 60px;
        max-height: 75px;
        border-radius: 4px;
        border-width: 1px;
    }

    .sidebar-link img {
        object-fit: cover;
    }

    .form-wrapper {
        padding: 12px;
        border-radius: 8px;
        min-height: 350px;
    }

    .form-iframe {
        min-height: 480px;
    }

    .form-loading {
        padding: 30px 12px;
    }

    .form-loading .spinner {
        width: 28px;
        height: 28px;
    }

    .form-loading .loading-text {
        font-size: 14px;
    }

    .form-loading .loading-sub {
        font-size: 12px;
    }

    .form-notice {
        font-size: 12px;
        padding: 12px 14px;
        gap: 6px;
    }

    .form-notice .icon {
        font-size: 18px;
    }

    .form-actions .btn-hunt {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 100px;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* HP Sangat Kecil (≤380px) */
@media (max-width: 380px) {
    .top-nav .nav-links a {
        font-size: 10px;
        padding: 2px 4px;
    }

    .sidebar-wrapper {
        gap: 6px;
    }

    .sidebar-title {
        font-size: 9px;
        padding: 2px 6px;
        min-width: 40px;
    }

    .sidebar-title .title-icon {
        font-size: 10px;
    }

    .sidebar-banner {
        min-height: 50px;
        max-height: 65px;
        border-radius: 4px;
    }

    .form-iframe {
        min-height: 420px;
    }

    .form-wrapper {
        padding: 8px;
        min-height: 300px;
    }

    .form-actions .btn-hunt {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 80px;
    }

    .form-notice {
        font-size: 11px;
        padding: 10px 12px;
    }

    .header-banner {
        height: 40px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Landscape Mode di HP */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 12px;
    }

    .top-nav {
        padding: 6px 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .top-nav .nav-logo {
        font-size: 16px;
    }

    .top-nav .nav-links a {
        font-size: 12px;
        padding: 2px 8px;
    }

    .header-banner {
        height: 50px;
        margin-bottom: 8px;
    }

    .sidebar-wrapper {
        gap: 8px;
    }

    .sidebar-title {
        font-size: 10px;
        padding: 3px 10px;
        min-width: 50px;
    }

    .sidebar-banner {
        min-height: 55px;
        max-height: 70px;
    }

    .form-wrapper {
        min-height: 280px;
    }

    .form-iframe {
        min-height: 380px;
    }

    .form-loading {
        padding: 20px;
    }

    .form-loading .spinner {
        width: 24px;
        height: 24px;
    }

    .form-actions .btn-hunt {
        padding: 8px 16px;
        font-size: 12px;
    }

    .footer {
        margin-top: 20px;
        padding: 16px 0 12px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}