@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --gold: #c5a059;
    --gold-light: #e0c080;
    --gold-dark: #9e7b48;
    --petrol-blue: #1b6b85;
    --glass-bg: rgba(15, 60, 80, 0.75); /* More transparent Petrol Blue */
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-white: #ffffff;
    --text-gold: #c5a059;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --shadow-xl: 0 40px 100px rgba(0,0,0,0.6);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-sans);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Background dengan overlay mewah */
.premium-landing {
    position: relative;
    background: url('../images/hotel_bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Glass Card Utama */
.glass-card {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 2.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 780px;
    text-align: center;
    transition: var(--transition-smooth);
}

/* Logo */
.hotel-logo-container {
    margin-bottom: 2rem;
}
.hotel-logo {
    max-width: 140px;
    height: auto;
    background: white;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Typography */
.hotel-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.hotel-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}
.language-instruction {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin: 2rem 0 2.5rem;
    font-weight: 400;
}

/* Grid Bahasa Premium (4 kolom desktop) */
.new-lang-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allow languages to wrap to next line instead of overflowing */
}
.new-lang-btn {
    flex: 1;
    min-width: 100px;
    max-width: 120px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.5rem;
    padding: 1.2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}
.new-lang-btn:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.flag-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}
.flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lang-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
}

/* Input & Tombol */
.form-input-premium {
    width: 100%;
    max-width: 320px;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    outline: none;
    margin-bottom: 2rem;
}
.form-input-premium::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-input-premium:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(197,160,89,0.2);
}

.btn-gold-premium {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(197,160,89,0.3);
}
.btn-gold-premium:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 12px 28px rgba(197,160,89,0.4);
}
.btn-icon {
    margin-left: 6px;
}
.change-lang {
    margin-top: 2.5rem;
}
.change-lang a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    transition: 0.3s;
}
.change-lang a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.room-heading {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}
.room-desc {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Progress Bar di حواف الكارت السفلى */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.05);
    z-index: 10;
    border-radius: 0 0 2.5rem 2.5rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--gold);
}

/* Pertanyaan */
.question-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}
.emoji-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}
.emoji-btn {
    font-size: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    filter: grayscale(0.4);
    transition: 0.2s;
}
.emoji-btn:hover, .emoji-btn.selected {
    filter: grayscale(0);
    transform: scale(1.2);
}
.tf-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.tf-btn {
    flex: 1;
    max-width: 150px;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.tf-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    stroke: currentColor;
    fill: none;
    transition: 0.3s;
}
.tf-btn.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(197,160,89,0.4);
}
.scale-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.scale-buttons::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */
.scale-node {
    flex: 1;
    min-width: 45px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scale-node:hover, .scale-node.selected {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(197,160,89,0.4);
}
.scale-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.8rem;
    padding: 0 1.5rem;
    font-weight: 600;
}

/* Step Transisi */
.fade-in {
    animation: fadeSlideUp 0.5s ease-out forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Photo Step */
.photo-step .photo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.photo-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.photo-desc {
    color: var(--gold);
    margin-bottom: 2rem;
}
.thanks-step .thanks-icon {
    font-size: 4rem;
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-12px); }
}
.thanks-title {
    font-size: 2.8rem;
    font-family: var(--font-serif);
    margin: 1.5rem 0;
    color: var(--text-white);
}
.thanks-desc {
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(197,160,89,0.2);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive Refined */
@media (max-width: 780px) {
    .glass-card { 
        padding: 2.5rem 1.5rem; 
        border-radius: 2rem;
        max-width: 95%;
    }
    .hotel-logo { max-width: 100px; padding: 8px; }
    .hotel-title { font-size: 1.8rem; }
    .hotel-subtitle { font-size: 0.7rem; letter-spacing: 3px; }
    .question-text { font-size: 1.6rem; margin-bottom: 1.5rem; }
    .new-lang-grid { flex-wrap: wrap; gap: 0.8rem; }
    .new-lang-btn { padding: 1.2rem 0.5rem; }
    .flag-circle { width: 45px; height: 45px; } /* Reduced from 50px */
    .scale-node { min-width: 38px; height: 45px; font-size: 1rem; }
    .progress-bar { border-radius: 0 0 2rem 2rem; }
}

@media (max-width: 480px) {
    .glass-card { padding: 1.5rem 1rem; }
    .hotel-logo-container { margin-bottom: 1rem; }
    .hotel-logo { max-width: 80px; padding: 6px; }
    .hotel-title { font-size: 1.4rem; }
    .hotel-subtitle { font-size: 0.65rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
    .language-instruction { margin: 0.8rem 0 1.2rem; font-size: 0.85rem; }
    
    .new-lang-grid { gap: 0.5rem; }
    .new-lang-btn { 
        min-width: 80px; 
        max-width: 100px;
        padding: 0.8rem 0.3rem; 
        gap: 0.4rem;
        border-radius: 1rem;
    }
    .flag-circle { width: 32px; height: 32px; }
    .lang-label { font-size: 0.8rem; }

    .question-text { font-size: 1.3rem; }
    .emoji-btn { font-size: 2.8rem; }
    .btn-gold-premium { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
    .scale-buttons { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .scale-node { flex: 1 1 18%; min-width: 32px; height: 42px; font-size: 1rem; margin-bottom: 5px; }
    .thanks-title { font-size: 1.8rem; }
}