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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.background {
    position: absolute;
    inset: 0;
    transition: opacity 0.7s ease-in-out;
    background-size: cover;
    background-position: center;
}

.main-content {
    width: 100%;
    max-width: 50rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column; 
    align-items: center;   
    gap: 20px;  
}

.logo {
  width: 150px; 
  height: auto;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.progress-container {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.progress-bar {
    height: 2px;
    transition: all 0.5s;
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-bar.active {
    width: 4rem;
    background-color: #B8CC86;
}

.progress-bar.inactive {
    width: 2rem;
}

.progress-bar.completed {
    background-color: #B8CC86;
}

.content-area {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.input-wrapper {
    margin-bottom: 2rem;
}

input {
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    transition: all 0.3s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

input:focus {
    outline: none;
    border-bottom-color: #B8CC86;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-btn {
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
}

.option-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #B8CC86;
    transition: width 0.3s;
}

.option-btn:hover {
    color: #fff;
}

.option-btn:hover::before {
    width: 100%;
}

.option-btn.selected {
    color: #B8CC86;
}

.option-btn.selected::before {
    width: 100%;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
}

.nav-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    color: #fff;
}

.nav-btn:disabled {
    opacity: 0;
    cursor: not-allowed;
}

.nav-btn.primary {
    color: #B8CC86;
    font-weight: 400;
}

.nav-btn.primary:disabled {
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.3);
}

.nav-btn.primary:hover:not(:disabled) {
    color: #c9dd96;
}

.hidden {
    display: none;
}

.loading-btn {
    position: relative;
    animation: loadingPulse 1.2s ease-in-out infinite;
}

#globalLoader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* FIX: loader hidden on page load */
#globalLoader.loader-hidden {
    display: none !important;
}

.loader-box {
    background: rgba(255,255,255,0.08);
    padding: 28px 36px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.loader-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loadingPulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.65; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    h1 { font-size: 2.5rem; }
    input { font-size: 1.5rem; }
    .options-grid { grid-template-columns: 1fr; gap: 1rem; }
    .option-btn { font-size: 1.25rem; padding: 1.25rem 1.5rem; }
    .nav-btn { font-size: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    input { font-size: 1.25rem; }
    .option-btn { font-size: 1.125rem; }
}

/* ===== BUTTON LOADING ===== */
.nav-btn.loading-btn {
    animation: loadingPulse 1s ease-in-out infinite;
    pointer-events: none;
}
