:root {
    --bg: #05050d;
    --panel: rgba(18, 18, 34, 0.9);
    --glass: rgba(255, 255, 255, 0.07);
    --text: #f7f2ff;
    --muted: #aaa3c4;
    --purple: #9d4dff;
    --pink: #ff4fd8;
    --blue: #37d5ff;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 0 35px rgba(157, 77, 255, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}
.glow-indigo { top: 0; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--purple) 0%, transparent 70%); }
.glow-violet { bottom: 0; right: -10%; width: 40vw; height: 40vw; background: radial-gradient(circle, var(--pink) 0%, transparent 70%); }

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow);
}

/* Header */
.section-label {
    display: block;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(247, 242, 255, 0.3);
}

.subtitle {
    color: var(--pink);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.disclaimer-banner {
    background: rgba(55, 213, 255, 0.1);
    border-left: 4px solid var(--blue);
    padding: 1rem;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form Sections */
.form-section {
    border: none;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.form-section legend {
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-right: 1rem;
    text-shadow: 0 0 10px rgba(157, 77, 255, 0.4);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.luxury-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.luxury-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: inset 0 0 10px rgba(55, 213, 255, 0.2), 0 0 15px rgba(55, 213, 255, 0.2);
}

.luxury-input[readonly] {
    color: var(--blue);
    font-weight: 700;
    background: rgba(55, 213, 255, 0.05);
}

.static-value {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--purple);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--purple);
}

/* Terms Box */
.terms-box {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.terms-box h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.terms-box ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--muted);
    line-height: 1.6;
}

.terms-box li {
    margin-bottom: 0.5rem;
}

/* Signatures */
.sig-disclaimer {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.signature-pad-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed var(--purple);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.signature-pad-container:hover {
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255, 79, 216, 0.1);
}

.pad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.clear-btn {
    background: transparent;
    border: 1px solid var(--muted);
    color: var(--muted);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    color: var(--text);
    border-color: var(--text);
}

.sig-canvas {
    width: 100%;
    height: 150px;
    background: transparent;
    cursor: crosshair;
    border-radius: 8px;
}

/* Records Box */
.for-records-box {
    background: rgba(255, 79, 216, 0.05);
    border-left: 4px solid var(--pink);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 3rem;
}

.for-records-box h4 {
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.muted-text {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Submit Button */
.submit-area {
    margin-top: 3rem;
    text-align: center;
}

.launch-btn {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 79, 216, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 79, 216, 0.5);
}

.launch-btn.sending {
    background: var(--blue);
    box-shadow: 0 10px 30px rgba(55, 213, 255, 0.4);
    animation: pulse 1s infinite alternate;
    pointer-events: none;
}

.launch-btn.success {
    background: #00ff88;
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

@media (max-width: 600px) {
    .input-grid { grid-template-columns: 1fr; }
    .form-container { padding: 2rem 1.5rem; }
}

/* Utilities for PDF Capture */
.pdf-mode {
    width: 800px !important; /* Forces standard width so mobile doesn't stretch */
    max-width: none !important;
    margin: 0 !important;
    padding: 2rem !important;
    box-shadow: none !important;
    border: none !important;
    background: #05050d !important; /* Forces solid background */
    backdrop-filter: none !important;
}

.pdf-mode .hide-on-pdf {
    display: none !important;
}

.pdf-mode .luxury-input {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Prevents signatures or boxes from being cut in half across pages */
.pdf-mode .form-section, 
.pdf-mode .terms-box, 
.pdf-mode .for-records-box {
    page-break-inside: avoid;
}
