/* ============================================================
   CanSat Note de Débours — Stylesheet
   Palette mirrors cansat.lu / CanSat Luxembourg branding:
     Navy    #002B5C
     Cyan    #00C8E0
     Orange  #F07800
     White   #FFFFFF
   ============================================================ */

.cnd-wrapper *,
.cnd-wrapper *::before,
.cnd-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Outer wrapper ────────────────────────────────────────── */
.cnd-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 620px;
    margin: 32px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 43, 92, 0.18);
}

/* ── Header ───────────────────────────────────────────────── */
.cnd-header {
    background: linear-gradient(135deg, #002B5C 0%, #004B9A 60%, #0071C5 100%);
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
}

.cnd-header::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border: 3px solid rgba(0, 200, 224, 0.20);
    border-radius: 50%;
    top: -110px; right: -80px;
    pointer-events: none;
}

.cnd-header::after {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    border: 2px solid rgba(255, 215, 0, 0.18);
    border-radius: 50%;
    bottom: -60px; left: 20px;
    pointer-events: none;
}

.cnd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.cnd-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cnd-header-icon {
    font-size: 2rem;
    line-height: 1;
}

.cnd-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cnd-header-sub {
    font-size: 0.72rem;
    color: #00C8E0;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 3px;
}

.cnd-header-stars {
    font-size: 1.1rem;
    color: #FFD700;
    letter-spacing: 0.4em;
    opacity: 0.85;
}

/* ── Card ─────────────────────────────────────────────────── */
.cnd-card {
    background: #fff;
    padding: 32px 36px 36px;
}

.cnd-card-intro {
    border-left: 5px solid #00C8E0;
    padding-left: 14px;
    margin-bottom: 26px;
}

.cnd-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #002B5C;
    margin-bottom: 6px;
    line-height: 1.25;
}

.cnd-subtitle {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ── Alert ────────────────────────────────────────────────── */
.cnd-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 22px;
    font-weight: 500;
}

.cnd-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.cnd-alert--error {
    background: #fff3f0;
    border: 1px solid #e53e3e;
    color: #7b2020;
}

/* ── Form ─────────────────────────────────────────────────── */
.cnd-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnd-field { display: flex; flex-direction: column; gap: 7px; }

.cnd-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #002B5C;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cnd-req { color: #F07800; font-size: 0.9rem; }

/* ── Select ───────────────────────────────────────────────── */
.cnd-select-wrap { position: relative; }

.cnd-select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 2px solid #d1dce9;
    border-radius: 9px;
    font-size: 0.95rem;
    color: #1a202c;
    background: #f7fafd;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cnd-select:focus {
    border-color: #00C8E0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 200, 224, 0.18);
}

.cnd-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #002B5C;
    font-size: 1rem;
}

/* ── Submit button ────────────────────────────────────────── */
.cnd-submit-row { margin-top: 6px; }

.cnd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #F07800 0%, #d96600 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(240, 120, 0, 0.38);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    -webkit-appearance: none;
}

.cnd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 120, 0, 0.48);
    filter: brightness(1.05);
}

.cnd-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(240, 120, 0, 0.32);
}

.cnd-btn-icon {
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .cnd-card { padding: 22px 18px 26px; }
    .cnd-header { padding: 20px 18px; }
    .cnd-header-title { font-size: 1.1rem; }
    .cnd-header-stars { display: none; }
}
