/* ============================
   TuringOne - Dark Modern UI
   ============================ */

:root {
    --bg-dark: #0d1414;
    --bg-card: #162424;
    --text-light: #e8f1ef;
    --text-muted: #9ba9a8;
    --primary: #0A7C63;
    --primary-hover: #0d9c7f;
    --error: #ff5b5b;
    --border: #1e2f2e;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    font-family: "Inter", sans-serif;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    flex-direction: column;   /* NEW */
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

label {
    font-size: 14px;
    color: var(--text-muted);
}

input, textarea, select {
    width: 100%;
    background: #0f1b1b;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 14px;
    color: var(--text-light);
    font-size: 15px;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: var(--primary-hover);
}

.alert {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 80, 80, 0.15);
    color: var(--error);
}

.alert-success {
    background: rgba(32, 148, 104, 0.15);
    color: var(--primary);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    justify-content: flex-start; /* NEW */
    width: 100%;                /* NEW */
}


.lang-selector {
    text-align: right;
    margin-bottom: 15px;
}

.lang-selector select {
    background: #0f1b1b;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
}

.test-points {
    background: rgba(10, 124, 99, 0.15);
    padding: 14px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--primary);
}

/* -------- GRID LAYOUT -------- */
.form-row {
    display: flex;
    width: 100%;
    gap: 18px;
}

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

.half {
    width: 50%;
}

/* -------- CHECKBOX -------- */
.checkbox-row {
    margin-top: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* -------- MESSAGE INLINE -------- */
textarea {
    resize: none !important;
    height: 48px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    .half {
        width: 100%;
    }
}

/* ==== FIX INTL-TEL-INPUT DROPDOWN (Dark Mode) ==== */

/* Conteneur général du dropdown */
.iti__country-list {
    background: #1e2a2a !important;
    border: 1px solid #2f3e3e !important;
    color: #e8f1ef !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}

/* Ligne pays */
.iti__country {
    background: transparent !important;
    color: #e8f1ef !important;
}

/* Hover + item sélectionné */
.iti__country:hover,
.iti__country.iti__highlight {
    background: #0A7C63 !important;
    color: #ffffff !important;
}

/* Code pays */
.iti__dial-code {
    color: #9fcac5 !important;
}

/* Nom du pays */
.iti__country-name {
    color: #e8f1ef !important;
}

/* Séparateur */
.iti__divider {
    border-bottom: 1px solid #2f3e3e !important;
}

.resend-btn {
    margin-top: 15px;
    width: 100%;
    background: transparent;
    color: #0A7C63;
    border: 1px solid #0A7C63;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.resend-btn:hover {
    background: #0A7C63;
    color: white;
}
.footer {
    margin-top: 30px;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 20px;
}

.footer a {
    color: #0A7C63;
    text-decoration: none;
    margin-right: 8px;
}

.footer a:hover {
    text-decoration: underline;
}




