/* ============================================
   DEMO PAGE - STANDALONE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-container {
    max-width: 560px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 48px 40px;
    transition: all 0.3s ease;
}

/* ----- Header ----- */
.demo-header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-header .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 16px;
}

.demo-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.demo-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ----- Form ----- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 4px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ----- Checkbox ----- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #2563eb;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* ----- Submit Button ----- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #21da9e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #82e6bb;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----- Alerts ----- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert i {
    font-size: 1.1rem;
}

/* ----- HIPAA Logo ----- */
.hipaa-logo {
    text-align: center;
    margin-top: 20px;
}

.hipaa-logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
}

/* ----- Footer ----- */
.demo-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.demo-footer a {
    color: #2563eb;
    text-decoration: none;
}

.demo-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-container {
    text-align: center;
    padding: 20px 0;
}

.success-container .icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 16px;
}

.success-container h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.success-container p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.success-container .btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.success-container .btn-back:hover {
    background: #1d4ed8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .demo-container {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .demo-header h1 {
        font-size: 1.4rem;
    }
    
    .demo-header .logo {
        max-width: 80px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .demo-container {
        padding: 24px 16px;
    }
    
    .demo-header h1 {
        font-size: 1.2rem;
    }
    
    .demo-header p {
        font-size: 0.85rem;
    }
}