/* --- CSS STYLES --- */
:root {
    --primary-red: #e63946;
    --hover-red: #c1121f;
    --dark-bg: #121212;
    --panel-bg: rgba(30, 30, 30, 0.95);
    --text-color: #f1faee;
    --accent-green: #2a9d8f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg); /* This is the fallback if image fails */
    color: var(--text-color);
    overflow: hidden;
}

/* Background with Overlay */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ------------------------------------------------------------------ */
    /* *** CHECK THIS LINE: The path is set to images/rnf.jpg *** */
    background: url('https://rencontre-coquin.com/images/rnf.jpg') no-repeat center center/cover; 
    /* ------------------------------------------------------------------ */
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates the darkening effect (the partial black layer) */
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.7) 100%);
    z-index: 0;
}

/* Header / Logo */
header {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-red);
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.brand-highlight {
    color: var(--primary-red);
}

/* Main Content */
.main-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.chat-panel {
    background: var(--panel-bg);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Elements */
.filter-group {
    text-align: left;
    margin-bottom: 25px;
}

.label-text {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.option-btn {
    background: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.option-btn:hover {
    background: #3a3a3a;
    border-color: #666;
}

.option-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

/* Action Button */
.cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #e63946 0%, #c1121f 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.cta-btn:active {
    transform: translateY(1px);
}

/* Disclaimer */
.disclaimer {
    margin-top: 25px;
    font-size: 0.75rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Loading Screen (Hidden by default) */
.loading-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    font-size: 1.1rem;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Badges */
.badge-18 {
    background: #333;
    border: 1px solid #555;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #e63946;
    margin-right: 5px;
}