/* ========================================
   Maharashtra Maratha Community Survey - Modern UI Styles
   Cultural Colors: Saffron (#FF9933), White (#FFFFFF), Green (#138808)
   ======================================== */

:root {
    --primary-color: #FF9933; /* Saffron */
    --secondary-color: #138808; /* Green */
    --accent-color: #000080; /* Navy Blue */
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --success: #27ae60;
    --error: #e74c3c;
    --gradient-primary: linear-gradient(135deg, #FF9933 0%, #ff6b35 100%);
    --gradient-secondary: linear-gradient(135deg, #138808 0%, #0f6906 100%);
    --gradient-hero: linear-gradient(135deg, #FF9933 0%, #ff6b35 50%, #138808 100%);
    --gradient-welcome: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f7fafc;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Modern Background with Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    filter: brightness(0.75);
}

@keyframes backgroundMove {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(20px, -20px);
    }
}

/* ========================================
   Moving Ticker
   ======================================== */
.ticker-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #FF9933 0%, #138808 50%, #FF9933 100%);
    padding: 12px 0;
    z-index: 998;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #FFD700;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticker-icon {
    font-size: 20px;
    margin-right: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.ticker-separator {
    color: #FFD700;
    font-size: 18px;
    margin: 0 20px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg) scale(1.2);
    }
}

/* ========================================
   Language Toggle Button - Enhanced
   ======================================== */
.language-toggle {
    position: fixed;
    top: 70px;
    right: 25px;
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

.header {
    margin-top: 48px;
}

.lang-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.lang-btn::before {
    content: '🌐';
    font-size: 18px;
}

.lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.lang-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ========================================
   Header Section - Modern Design
   ======================================== */
.header {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.92) 0%, rgba(255, 107, 53, 0.92) 50%, rgba(19, 136, 8, 0.92) 100%);
    color: var(--white);
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease-out;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    backdrop-filter: blur(10px);
}

.header-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -30px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.main-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
    letter-spacing: -1px;
    line-height: 1.2;
}

.subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeIn 1.2s ease-out;
    max-width: 600px;
    margin: 0 auto 40px;
}

.header-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-container {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    height: 8px;
    margin-bottom: 40px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.4s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.5);
}

.progress-text {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   Section Headers - Modern Design
   ======================================== */
.section-header {
    margin: 60px 0 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(19, 136, 8, 0.95) 0%, rgba(15, 105, 6, 0.95) 100%);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(19, 136, 8, 0.2);
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-header h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Welcome Screen - Modern Design
   ======================================== */
.welcome-screen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.welcome-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-start {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-start:hover::before {
    width: 300px;
    height: 300px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 153, 51, 0.4);
}

.welcome-note {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   Question Cards - Enhanced Design
   ======================================== */
.question-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.question-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.question-card:hover::before {
    transform: scaleY(1);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-hover);
    border-color: var(--primary-color);
}

.question-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-number {
    display: inline-block;
    min-width: 35px;
    color: var(--primary-color);
    font-weight: 700;
}

.required-mark {
    color: var(--error);
    margin-left: 5px;
}

/* ========================================
   Input Fields - Modern Design
   ======================================== */
.input-field,
.textarea-field,
.select-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.input-field:hover,
.textarea-field:hover,
.select-field:hover {
    border-color: #cbd5e0;
}

.input-field:focus,
.textarea-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
    transform: translateY(-2px);
}

.textarea-field {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   Radio and Checkbox Options - Enhanced Design
   ======================================== */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateX(8px);
    box-shadow: 0 4px 15px var(--shadow);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.2);
}

/* ========================================
   Buttons
   ======================================== */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-submit {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-copy-address {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy-address:hover {
    background: #0f6f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 136, 8, 0.3);
}

.btn-submit {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(19, 136, 8, 0.3);
    flex: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.4);
}

.btn-primary:active,
.btn-secondary:active,
.btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   Success Message
   ======================================== */
.success-message {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    animation: bounceIn 0.8s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.success-message h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    background: var(--text-dark);
    color: var(--white);
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   Children Cards (Dynamic)
   ======================================== */
.child-card {
    background: linear-gradient(135deg, #fff8f0 0%, #f0fff4 100%);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    position: relative;
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.child-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-child-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-child-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.child-question {
    margin-bottom: 15px;
}

.child-question label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .header-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .welcome-content {
        padding: 40px 30px;
    }

    .draft-saved-notification {
        top: 80px;
        right: 15px;
        left: 15px;
        text-align: center;
        font-size: 14px;
        padding: 12px 20px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-description {
        font-size: 16px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .section-header {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .question-card {
        padding: 25px;
    }

    .question-label {
        font-size: 16px;
    }

    .button-container {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-submit {
        width: 100%;
    }

    .language-toggle {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .progress-text {
        font-size: 12px;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 60px 15px 80px;
    }

    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .header-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .welcome-content {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .welcome-icon {
        font-size: 60px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .btn-start {
        padding: 16px 40px;
        font-size: 16px;
    }

    .question-card {
        padding: 20px;
        border-radius: 15px;
    }

    .input-field,
    .textarea-field,
    .select-field {
        padding: 14px 16px;
        font-size: 15px;
    }

    .radio-option,
    .checkbox-option {
        padding: 14px 16px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .language-toggle,
    .progress-container,
    .button-container,
    .footer {
        display: none;
    }

    .question-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   Loading Spinner (for form submission)
   ======================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ========================================
   Smooth Scrolling
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Save Draft Container
   ======================================== */
.save-draft-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #e8f5e9 100%);
    border-radius: 15px;
    border: 2px dashed var(--primary-color);
    animation: fadeInUp 0.5s ease-out;
}

.btn-draft {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: var(--text-dark);
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-draft:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.4);
}

.btn-continue-draft {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.btn-continue-draft::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-continue-draft:hover::before {
    width: 300px;
    height: 300px;
}

.btn-continue-draft:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.draft-info {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

.draft-saved-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    z-index: 1001;
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-out 2.5s forwards;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ========================================
   reCAPTCHA Container
   ======================================== */
.captcha-container {
    margin: 40px 0;
    animation: fadeInUp 0.5s ease-out;
}

.captcha-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 2px solid #e2e8f0;
    text-align: center;
}

.captcha-info {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.math-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.captcha-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.captcha-input {
    width: 120px;
    padding: 12px 20px;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(19, 136, 8, 0.1);
    transform: scale(1.05);
}

.btn-refresh-captcha {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 136, 8, 0.3);
}

.btn-refresh-captcha:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.4);
}

.btn-refresh-captcha:active {
    transform: rotate(180deg) scale(0.95);
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========================================
   Grand Opening Curtain Effect
   ======================================== */
.curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
}

.curtain-left, .curtain-right {
    position: absolute;
    top: 0;
    width: 52%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, #DC143C 0%, #8B0000 50%, #5D0000 100%);
    box-shadow: 
        inset 0 0 150px rgba(0, 0, 0, 0.6),
        20px 0 80px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    will-change: transform;
}

.curtain-left {
    left: 0;
    animation: curtainOpenLeft 5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
    transform-origin: top left;
}

.curtain-right {
    right: 0;
    animation: curtainOpenRight 5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
    transform-origin: top right;
}

/* Curtain texture effect - vertical draping folds */
.curtain-left::before,
.curtain-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 35px,
            rgba(0, 0, 0, 0.2) 38px,
            rgba(0, 0, 0, 0.3) 42px,
            rgba(0, 0, 0, 0.2) 46px,
            transparent 49px,
            rgba(255, 255, 255, 0.05) 52px,
            rgba(255, 255, 255, 0.08) 55px,
            rgba(255, 255, 255, 0.05) 58px,
            transparent 61px,
            transparent 80px
        );
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}

/* Additional velvet texture */
.curtain-left::after,
.curtain-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(139, 0, 0, 0.3) 0px,
            rgba(220, 20, 60, 0.2) 15px,
            rgba(139, 0, 0, 0.3) 30px,
            rgba(93, 0, 0, 0.4) 45px,
            rgba(139, 0, 0, 0.3) 60px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 3px
        );
}

/* Golden curtain rod */
.curtain-rod {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: fadeOut 1s ease-out 6s forwards;
}

/* Curtain rod rings */
.curtain-rod::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(139, 69, 19, 0.3) 80px,
        rgba(139, 69, 19, 0.3) 85px
    );
}

/* Curtain tassels/ropes with swing animation - Hidden */
.curtain-tassel {
    display: none;
}

/* Opening animations - realistic swirling fabric movement */
@keyframes curtainOpenLeft {
    0% {
        transform: translateX(0) scaleX(1) skewY(0deg) rotateY(0deg);
    }
    15% {
        transform: translateX(-3%) scaleX(1.01) skewY(2deg) rotateY(2deg);
    }
    30% {
        transform: translateX(-10%) scaleX(1.03) skewY(-1deg) rotateY(5deg);
    }
    45% {
        transform: translateX(-22%) scaleX(1.06) skewY(1.5deg) rotateY(8deg);
    }
    60% {
        transform: translateX(-40%) scaleX(1.1) skewY(-1deg) rotateY(12deg);
    }
    75% {
        transform: translateX(-65%) scaleX(1.14) skewY(0.8deg) rotateY(15deg);
    }
    90% {
        transform: translateX(-90%) scaleX(1.18) skewY(-0.5deg) rotateY(18deg);
    }
    100% {
        transform: translateX(-108%) scaleX(1.22) skewY(0deg) rotateY(20deg);
    }
}

@keyframes curtainOpenRight {
    0% {
        transform: translateX(0) scaleX(1) skewY(0deg) rotateY(0deg);
    }
    15% {
        transform: translateX(3%) scaleX(1.01) skewY(-2deg) rotateY(-2deg);
    }
    30% {
        transform: translateX(10%) scaleX(1.03) skewY(1deg) rotateY(-5deg);
    }
    45% {
        transform: translateX(22%) scaleX(1.06) skewY(-1.5deg) rotateY(-8deg);
    }
    60% {
        transform: translateX(40%) scaleX(1.1) skewY(1deg) rotateY(-12deg);
    }
    75% {
        transform: translateX(65%) scaleX(1.14) skewY(-0.8deg) rotateY(-15deg);
    }
    90% {
        transform: translateX(90%) scaleX(1.18) skewY(0.5deg) rotateY(-18deg);
    }
    100% {
        transform: translateX(108%) scaleX(1.22) skewY(0deg) rotateY(-20deg);
    }
}

/* Spotlight effect during opening */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.9) 70%);
    z-index: 9998;
    animation: fadeOut 1.5s ease-out 5s forwards;
    pointer-events: none;
}

/* Grand reveal text */
.grand-reveal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10003;
    text-align: center;
    animation: revealText 6s ease-in-out forwards;
    pointer-events: none;
}

.grand-reveal h1 {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 3px;
    animation: shimmer 3s ease-in-out infinite;
}

.grand-reveal p {
    font-size: 28px;
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    15% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Hide main content initially */
body.grand-opening .header,
body.grand-opening .container,
body.grand-opening .footer {
    opacity: 0;
    animation: fadeInContent 1.5s ease-out 6.5s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* Confetti particles */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9997;
    pointer-events: none;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}