/* ===== DEMO PAGE STYLES ===== */

.demo-main {
    min-height: 100vh;
    padding: 140px 5% 80px;
    background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                #060E1C;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Floating background elements */
.bg-shape {
    position: absolute;
    color: rgba(212, 175, 55, 0.03);
    z-index: 0;
    pointer-events: none;
    animation: float-slow 10s ease-in-out infinite alternate;
}

@keyframes float-slow {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(30px, 30px) rotate(15deg); }
}

.demo-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.demo-tag {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.demo-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.demo-title span {
    color: #D4AF37;
    font-style: italic;
}

.demo-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.7;
}

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.benefit-item i {
    color: #D4AF37;
    width: 22px;
    height: 22px;
}

/* Form Styling */
.demo-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: 40px; /* More rounded */
    backdrop-filter: blur(30px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: 0.5s;
}

.demo-form-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    border-radius: 42px;
    z-index: -1;
    animation: border-shimmer 4s linear infinite;
}

@keyframes border-shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

.demo-form-wrapper:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.subject-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.subject-pill {
    cursor: pointer;
}

.subject-pill input {
    display: none; /* Hide the checkbox */
}

.subject-pill span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
}

.subject-pill input:checked + span {
    background: var(--gold, #D4AF37);
    color: #060E1C;
    border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.subject-pill:hover span {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 22px;
    border-radius: 15px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none; /* Hide default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom Arrow for Select */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    transform: scale(1.02);
}

/* Fix for invisible dropdown options */
.form-group select option {
    background-color: #060E1C; /* Match the navy background */
    color: #FFFFFF;
    padding: 10px;
}

.form-btn {
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.form-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.form-btn:hover::before {
    left: 100%;
}

/* Floating Home Button (Reuse styles from results.css if needed or define here) */
.floating-home {
    position: fixed;
    left: 30px !important;
    right: auto !important;
    bottom: 40px;
    z-index: 9999;
    background: #D4AF37;
    color: #060E1C;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.4);
    animation: float-btn 3s ease-in-out infinite;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes float-btn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .demo-container { gap: 40px; }
    .demo-form-wrapper { padding: 40px; }
}

@media (max-width: 900px) {
    .demo-main { padding-top: 120px; }
    .demo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .demo-benefits { align-items: center; }
}

@media (max-width: 768px) {
    .demo-title { font-size: 2.2rem !important; }
    .demo-form-wrapper { padding: 30px 20px; border-radius: 20px; }
    .form-row { grid-template-columns: 1fr; }
    
    .floating-home {
        right: 20px;
        bottom: 20px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    .floating-home span { display: none; }
}

@media (max-width: 480px) {
    .demo-main { padding: 100px 15px 60px; }
    .demo-title { font-size: 1.8rem !important; }
    .demo-subtitle { font-size: 0.95rem; }
    .form-group input, .form-group select, .form-group textarea { padding: 12px 15px; font-size: 0.9rem; }
}
