/* ======================================================
   Next GD v2 - Multi-page Styles (Tailwind supplement)
   ====================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.3)' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: #111827;
    color: #fff;
}

select optgroup {
    background: #111827;
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
}

/* Header */
#header {
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

#header.scrolled {
    background: rgba(6, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Active nav link */
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile toggle animation */
#mobileToggle.active #bar1 {
    transform: translateY(8px) rotate(45deg);
}
#mobileToggle.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#mobileToggle.active #bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown - bridge area to prevent hover gap */
.nav-dropdown .dropdown-menu {
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateY(8px);
    pointer-events: none;
}
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Form steps */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeSlideUp 0.4s ease-out;
}

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

.step-circle.active {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.step-circle.completed {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
}

/* File upload */
#uploadArea.drag-over {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.05);
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.file-preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.file-preview-item .remove-file {
    margin-left: auto;
    padding: 0.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}
.file-preview-item .remove-file:hover {
    color: #ef4444;
}

/* FAQ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer.show {
    display: block;
    max-height: 300px;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll top button */
#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

/* Spot card - prevent border-radius flicker on image zoom */
.group.overflow-hidden.rounded-2xl {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Spot detail modal */
.spot-modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.spot-modal-content.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Page hero (inner pages) */
.page-hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(239, 68, 68, 0.08), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.06), transparent 50%);
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060810;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Checkbox */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

input[type="checkbox"]:checked {
    background: #ef4444;
    border-color: #ef4444;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Spot checkbox checked state */
.spot-check:has(input:checked) {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.06);
}

/* Validation */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-msg {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
