/**
 * Style CSS - Formulare eveniment Joyfest
 * 2026-04-07: Creare initiala
 * 2026-05-05: Adaugat nav formulare + info Joyfest
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========= HEADER ========= */
.event-header {
    background: linear-gradient(135deg, #0077C8 0%, #005fa0 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px 24px;
}

.event-header img.logo-trisport {
    height: 120px;
    margin-bottom: 12px;
}

.event-header img.logo-kross {
    height: 32px;
    margin-bottom: 12px;
    margin-left: 16px;
}

.event-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.event-header .event-date {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* ========= ALERT BANNER ========= */
.alert-banner {
    background: #FFF3CD;
    border: 1px solid #FFECB5;
    border-left: 4px solid #FA4616;
    padding: 14px 18px;
    margin: 20px auto 0;
    max-width: 600px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #664D03;
}

.alert-banner strong {
    color: #FA4616;
}

/* ========= FORM CONTAINER ========= */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ========= SECTION ========= */
.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.form-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0077C8;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f4fd;
}

/* ========= FORM FIELDS ========= */
.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-row label .required {
    color: #FA4616;
    margin-left: 2px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #0077C8;
    box-shadow: 0 0 0 3px rgba(0,119,200,0.1);
}

.form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row-inline {
    display: flex;
    gap: 12px;
}

.form-row-inline .form-row {
    flex: 1;
}

/* ========= RADIO BUTTONS (sex) ========= */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    text-align: center;
}

.radio-group label:hover {
    border-color: #0077C8;
    background: #f0f8ff;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + span {
    color: #0077C8;
    font-weight: 700;
}

.radio-group label:has(input:checked) {
    border-color: #0077C8;
    background: #e8f4fd;
}

/* ========= BIKE MODEL CARDS ========= */
.bike-models {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bike-model-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.bike-model-card:hover {
    border-color: #0077C8;
    background: #f0f8ff;
}

.bike-model-card.selected {
    border-color: #0077C8;
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(0,119,200,0.15);
}

.bike-model-card input[type="radio"] {
    display: none;
}

.bike-model-card .model-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.bike-model-card .model-age {
    font-size: 12px;
    color: #888;
}

.bike-model-card .check-icon {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #0077C8;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.bike-model-card.selected .check-icon {
    display: block;
}

/* ========= TIME SLOT GRID ========= */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.slot-btn {
    padding: 10px 6px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.slot-btn:hover:not(.occupied):not(.selected) {
    border-color: #0077C8;
    background: #f0f8ff;
}

.slot-btn.selected {
    border-color: #0077C8;
    background: #0077C8;
    color: #fff;
    font-weight: 700;
}

.slot-btn.occupied {
    background: #f0f0f0;
    color: #aaa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-notice {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}

.slot-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.slot-legend span::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.slot-legend .legend-free::before {
    background: #fff;
    border: 1.5px solid #ddd;
}

.slot-legend .legend-occupied::before {
    background: #f0f0f0;
    border: 1.5px solid #e0e0e0;
}

/* ========= DECLARATION ========= */
.declaration-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 14px;
    max-height: 300px;
    overflow-y: auto;
}

/* ========= CHECKBOXES ========= */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #0077C8;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-row label a {
    color: #0077C8;
    text-decoration: underline;
}

/* ========= SUBMIT BUTTON ========= */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FA4616 0%, #ff6b3d 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(250,70,22,0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========= ERROR MESSAGES ========= */
.error-msg {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-left: 4px solid #EF4444;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.field-error {
    border-color: #EF4444 !important;
}

.field-error-text {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
}

/* ========= THANK YOU PAGE ========= */
.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    font-size: 40px;
    color: #fff;
}

.thank-you-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.thank-you-container .subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: left;
}

.info-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0077C8;
    margin-bottom: 12px;
}

.info-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.info-card .info-row:last-child {
    border-bottom: none;
}

.info-card .info-row .label {
    color: #888;
}

.info-card .info-row .value {
    font-weight: 600;
    color: #333;
}

/* ========= DISCOUNT CODE ========= */
.discount-card {
    background: linear-gradient(135deg, #FA4616 0%, #ff6b3d 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.discount-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.95;
}

.discount-code-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 12px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.discount-code-box:hover {
    background: rgba(255,255,255,0.3);
}

.discount-code-box .code {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
}

.discount-code-box .copy-icon {
    font-size: 20px;
    opacity: 0.8;
}

.discount-card .discount-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

.copied-msg {
    font-size: 13px;
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    display: none;
    margin-top: 6px;
}

/* ========= HELMET REMINDER ========= */
.helmet-reminder {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    color: #92400E;
}

.helmet-reminder strong {
    color: #B45309;
}

/* ========= REGULAMENT PAGE ========= */
.regulament-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.regulament-container section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.regulament-container h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0077C8;
    margin-bottom: 12px;
}

.regulament-container h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 8px;
}

.regulament-container p,
.regulament-container li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.regulament-container ul {
    padding-left: 20px;
    margin: 8px 0;
}

.regulament-container li {
    margin-bottom: 4px;
}

.highlight-red {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 14px;
    color: #991B1B;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

/* ========= BACK LINK ========= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0077C8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========= COOKIE CONSENT (light theme) ========= */
.cookie-consent-mode {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #fff; border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.1);
    padding: 24px;
    max-height: 90vh; overflow-y: auto;
}
.cookie-content { max-width: 900px; margin: 0 auto; }
.cookie-content .title { display: block; font-size: 18px; font-weight: 700; color: #333; margin-bottom: 10px; }
.cookie-content .general-description { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 8px; }
.cookie-content > a { font-size: 13px; color: #0077C8; text-decoration: underline; display: inline-block; margin-bottom: 16px; }
.cookie-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.cookie-item .left-side { flex: 1; }
.cookie-item .cookie-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.cookie-item .cookie-description { font-size: 12px; color: #888; line-height: 1.5; }
.cookie-item .right-side { flex-shrink: 0; padding-top: 2px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 24px; transition: 0.3s; }
.slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: #0077C8; }
input:checked + .slider:before { transform: translateX(20px); }
input:disabled + .slider { background: #0077C8; opacity: 0.6; cursor: default; }
input:disabled + .slider.checked:before { transform: translateX(20px); }
.buttons-container { max-width: 900px; margin: 16px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.buttons-right { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent-mode .btn-one {
    background: transparent; border: 1px solid #ddd; color: #666;
    padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.cookie-consent-mode .btn-one:hover { border-color: #999; color: #333; }
.cookie-consent-mode .btn-two {
    background: #0077C8; border: none; color: #fff;
    padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.cookie-consent-mode .btn-two:hover { background: #005fa0; }
@media (max-width: 600px) {
    .cookie-consent-mode { padding: 16px; }
    .buttons-container { flex-direction: column; align-items: stretch; }
    .buttons-right { justify-content: stretch; }
    .cookie-consent-mode .btn-one, .cookie-consent-mode .btn-two { width: 100%; text-align: center; }
}

/* ========= FORM NAV ========= */
.form-nav {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 0;
}

.form-nav a {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.form-nav a:hover {
    color: #0077C8;
    background: #f0f8ff;
}

.form-nav a.active {
    color: #0077C8;
    border-bottom-color: #0077C8;
    background: #f0f8ff;
}

/* ========= JOYFEST INFO ========= */
.joyfest-info {
    max-width: 600px;
    margin: 16px auto 0;
    padding: 0 16px;
}

.joyfest-info .info-box {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.joyfest-info .info-box strong {
    color: #333;
}

.joyfest-info .info-box a {
    color: #0077C8;
    font-weight: 600;
}

.joyfest-info .info-grid {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.joyfest-info .info-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f8ff;
    border: 1px solid #d0e8f7;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0077C8;
    white-space: nowrap;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 480px) {
    .event-header h1 { font-size: 18px; }
    .form-row-inline { flex-direction: column; gap: 0; }
    .bike-models { grid-template-columns: 1fr; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .form-nav a { font-size: 11px; padding: 10px 4px; }
    .joyfest-info .info-grid { flex-direction: column; gap: 6px; }
}
