/* ===== Registration Module Styles =====
 * Verzija: 2.1.0 — brend boje: #FA461E, #EFE429, #E9E3D6, #1F2226
 *  - tekst pozdravnog ekrana, link-dugme za Uslove
 *  - modalni prozor s cijelim Uslovima
 *  - blok za status podmlatka (16–17)
 */

.ccv2-registration-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #E9E3D6;
    border-radius: 10px;
    font-family: "Myriad Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: #1F2226;
    box-shadow: 0 2px 10px rgba(31, 34, 38, 0.06);
}

.ccv2-registration-wrap h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #FA461E;
    text-align: center;
}

/* ---------- Ekran "Dobro došli" ---------- */

.ccv2-gate-text {
    margin: 0 0 18px;
}

.ccv2-gate-text p {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: #1F2226;
}

.ccv2-gate-text p:last-child {
    margin-bottom: 0;
}

.ccv2-gate-closing {
    font-weight: 600;
    color: #1F2226;
    border-top: 1px solid #E9E3D6;
    padding-top: 12px;
}

.ccv2-gate > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1F2226;
}

.ccv2-gate-terms-link {
    margin: 18px 0;
    text-align: center;
}

.ccv2-gate-terms-note {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6b6f74;
}

.ccv2-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: #FA461E;
    text-decoration: underline;
    cursor: pointer;
}

.ccv2-linkbtn:hover,
.ccv2-linkbtn:focus {
    color: #1F2226;
}

.ccv2-linkbtn:focus-visible {
    outline: 2px solid #FA461E;
    outline-offset: 2px;
    border-radius: 3px;
}

.ccv2-gate-lead {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
    color: #1F2226;
}

.ccv2-gate-rules {
    background: #E9E3D6;
    border-left: 4px solid #FA461E;
    border-radius: 6px;
    padding: 16px 18px 16px 20px;
}

.ccv2-gate-rules h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #1F2226;
}

.ccv2-gate-rules ol {
    margin: 0;
    padding-left: 20px;
}

.ccv2-gate-rules li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ccv2-gate-rules li:last-child {
    margin-bottom: 0;
}

.ccv2-gate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Forma ---------- */

.ccv2-form .ccv2-field {
    margin-bottom: 16px;
}

.ccv2-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1F2226;
}

.ccv2-form input[type="text"],
.ccv2-form input[type="email"],
.ccv2-form input[type="password"],
.ccv2-form input[type="number"],
.ccv2-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfc8b8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: #1F2226;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ccv2-form input:focus,
.ccv2-form select:focus {
    outline: none;
    border-color: #FA461E;
    box-shadow: 0 0 0 3px rgba(250, 70, 30, 0.15);
}

.ccv2-field-help {
    margin: 6px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #5a5f66;
}

.ccv2-field-check label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
}

.ccv2-field-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #FA461E;
    flex: 0 0 auto;
}

/* Honeypot — skriveno od ljudi, dostupno botovima */
.ccv2-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Dugmad ---------- */

.ccv2-actions {
    text-align: center;
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ccv2-btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ccv2-btn-primary {
    background: #FA461E;
    border-color: #FA461E;
    color: #fff;
}

.ccv2-btn-primary:hover,
.ccv2-btn-primary:focus {
    background: #d63a15;
    border-color: #d63a15;
    color: #fff;
}

.ccv2-btn-ghost {
    background: transparent;
    border-color: #1F2226;
    color: #1F2226;
}

.ccv2-btn-ghost:hover,
.ccv2-btn-ghost:focus {
    background: #1F2226;
    color: #EFE429;
}

.ccv2-btn:focus-visible {
    outline: 3px solid #EFE429;
    outline-offset: 2px;
}

.ccv2-btn.is-busy,
.ccv2-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

/* ---------- Poruke ---------- */

.ccv2-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
}

.ccv2-message.success {
    display: block;
    background: #eef7ec;
    color: #22622c;
    border: 1px solid #a9d3a5;
}

.ccv2-message.error {
    display: block;
    background: #fdeeea;
    color: #a32a0d;
    border: 1px solid #f5b4a3;
}

/* ---------- Mobilno ---------- */

@media (max-width: 520px) {

    .ccv2-registration-wrap {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .ccv2-btn {
        width: 100%;
    }
}

/* ---------- Status podmlatka (16–17) ---------- */

.ccv2-youth-box {
    background: #EFE429;
    border-left: 4px solid #FA461E;
    border-radius: 6px;
    padding: 14px 16px;
}

.ccv2-youth-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1F2226;
}

.ccv2-youth-box .ccv2-field-help {
    color: #1F2226;
}

/* ---------- Modal: Uslovi korištenja ---------- */

body.ccv2-modal-open {
    overflow: hidden;
}

.ccv2-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ccv2-modal[hidden] {
    display: none;
}

.ccv2-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 34, 38, 0.65);
}

.ccv2-modal-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    background: #fff;
    border: 1px solid #E9E3D6;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(31, 34, 38, 0.35);
    overflow: hidden;
}

.ccv2-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #1F2226;
}

.ccv2-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.ccv2-modal-x {
    background: none;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #EFE429;
    cursor: pointer;
    padding: 0 4px;
}

.ccv2-modal-x:hover,
.ccv2-modal-x:focus {
    color: #FA461E;
}

.ccv2-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 22px;
    text-align: left;
}

.ccv2-modal-body:focus-visible {
    outline: 2px solid #FA461E;
    outline-offset: -2px;
}

.ccv2-modal-foot {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #E9E3D6;
    border-top: 1px solid #cfc8b8;
}

/* ---------- Tekst Uslova ---------- */

.ccv2-terms {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #1F2226;
}

.ccv2-terms-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #FA461E;
}

.ccv2-terms h5 {
    margin: 20px 0 8px;
    font-size: 1rem;
    color: #1F2226;
    border-bottom: 1px solid #E9E3D6;
    padding-bottom: 4px;
}

.ccv2-terms p {
    margin: 0 0 10px;
}

.ccv2-terms ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.ccv2-terms li {
    margin-bottom: 5px;
}

@media (max-width: 640px) {
    .ccv2-modal {
        padding: 0;
    }

    .ccv2-modal-box {
        max-width: none;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        border: 0;
    }

    .ccv2-modal-body {
        padding: 16px;
    }

    .ccv2-modal-foot {
        justify-content: center;
    }
}
