/* ============================================================
   CanSat Certificate Sender — Stylesheet
   Palette inspired by ESERO Luxembourg / CanSat branding:
     Cyan    #00C8E0
     Navy    #002B5C
     Orange  #F07800
     Green   #00A050
     Yellow  #FFD700
   ============================================================ */

/* ── Reset inside the wrapper ─────────────────────────────── */
.cansat-cert-wrapper *,
.cansat-cert-wrapper *::before,
.cansat-cert-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

.cansat-cert-header::before {
    /* Decorative arc — evokes a satellite orbit */
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(0, 200, 224, 0.25);
    border-radius: 50%;
    top: -120px;
    right: -80px;
    pointer-events: none;
}

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

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

.cansat-cert-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cansat-cert-logo-sub {
    font-size: 0.8rem;
    color: #00C8E0;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

.cansat-cert-stars {
    font-size: 1.2rem;
    color: #FFD700;
    letter-spacing: 0.4em;
    opacity: 0.85;
}

/* ── Main card ────────────────────────────────────────────── */
.cansat-cert-card {
    background: #ffffff;
    padding: 36px 40px 40px;
}

.cansat-cert-card-top {
    border-left: 5px solid #00C8E0;
    padding-left: 16px;
    margin-bottom: 28px;
}

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

.cansat-cert-subtitle {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.55;
}

/* ── Alerts ───────────────────────────────────────────────── */
.cansat-cert-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
}

.cansat-cert-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.cansat-cert-alert--success {
    background: #e6f9f0;
    border: 1px solid #00A050;
    color: #005c2e;
}

.cansat-cert-alert--error {
    background: #fff3f0;
    border: 1px solid #e53e3e;
    color: #822727;
}

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

.cansat-cert-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 520px) {
    .cansat-cert-row {
        grid-template-columns: 1fr;
    }
    .cansat-cert-card {
        padding: 24px 20px 28px;
    }
}

/* ── Labels ───────────────────────────────────────────────── */
.cansat-cert-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #002B5C;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}

.cansat-cert-required {
    color: #F07800;
    font-size: 0.9rem;
}

/* ── Text inputs ──────────────────────────────────────────── */
.cansat-cert-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #d1dce9;
    border-radius: 9px;
    font-size: 0.95rem;
    color: #1a202c;
    background: #f7fafd;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.cansat-cert-input::placeholder {
    color: #a0aec0;
}

.cansat-cert-input:focus {
    border-color: #00C8E0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 200, 224, 0.18);
}

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

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

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

.cansat-cert-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #002B5C;
    font-size: 1rem;
    line-height: 1;
}

/* ── Submit button ────────────────────────────────────────── */
.cansat-cert-submit-row {
    margin-top: 8px;
}

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

.cansat-cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(240, 120, 0, 0.50);
    filter: brightness(1.05);
}

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

.cansat-cert-btn-icon {
    font-size: 1.2rem;
}

/* ── Footer strip ─────────────────────────────────────────── */
.cansat-cert-footer {
    background: #002B5C;
    padding: 14px 32px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.05em;
}

.cansat-cert-footer a {
    color: #00C8E0;
    text-decoration: none;
}

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