/* ── IT Anketa Plugin Styles ────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
    --ita-blue:     #4F8EF7;
    --ita-purple:   #7C5CFA;
    --ita-dark:     #0f0f1a;
    --ita-surface:  #ffffff;
    --ita-muted:    #6b7280;
    --ita-border:   #e5e7eb;
    --ita-grad:     linear-gradient(135deg, var(--ita-blue), var(--ita-purple));
    --ita-shadow:   0 24px 60px -10px rgba(79,142,247,.18), 0 8px 20px rgba(0,0,0,.06);
    --ita-radius:   20px;
}

/* Container */
.ita-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 60px;
    min-height: 500px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,142,247,.08) 0%, transparent 70%);
}

/* Card */
.ita-card {
    background: var(--ita-surface);
    border-radius: var(--ita-radius);
    box-shadow: var(--ita-shadow);
    border: 1px solid rgba(79,142,247,.12);
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    animation: ita-fadein .5s ease both;
}

@keyframes ita-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.ita-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, rgba(79,142,247,.05), rgba(124,92,250,.05));
    border-bottom: 1px solid var(--ita-border);
}

.ita-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.ita-icon svg { width: 48px; height: 48px; }

.ita-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ita-blue);
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--ita-blue), var(--ita-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ita-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ita-dark);
    line-height: 1.5;
    margin: 0;
}

/* Body */
.ita-body {
    padding: 28px 32px 32px;
}

/* Email field */
.ita-field {
    margin-bottom: 24px;
}

.ita-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ita-dark);
    margin-bottom: 8px;
}

.ita-req { color: var(--ita-purple); }

.ita-input-wrap {
    position: relative;
}

.ita-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.ita-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--ita-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ita-dark);
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    outline: none;
}

.ita-input:focus {
    border-color: var(--ita-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79,142,247,.1);
}

.ita-input::placeholder { color: #c4c9d4; }

/* Options */
.ita-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.ita-radio { position: absolute; opacity: 0; width: 0; height: 0; }

.ita-option {
    cursor: pointer;
    display: block;
}

.ita-option-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--ita-border);
    border-radius: 14px;
    background: #fafafa;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
    position: relative;
    overflow: hidden;
}

.ita-option-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ita-grad);
    opacity: 0;
    transition: opacity .2s;
}

.ita-option:hover .ita-option-box {
    border-color: rgba(79,142,247,.4);
    background: #fff;
    box-shadow: 0 4px 14px rgba(79,142,247,.1);
    transform: translateX(3px);
}

/* Selected state */
.ita-radio:checked + .ita-option-box {
    border-color: var(--ita-blue);
    background: linear-gradient(135deg, rgba(79,142,247,.06), rgba(124,92,250,.06));
    box-shadow: 0 4px 20px rgba(79,142,247,.15);
}

/* Custom radio circle */
.ita-option-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ita-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s;
    background: #fff;
    z-index: 1;
}

.ita-radio:checked + .ita-option-box .ita-option-check {
    border-color: var(--ita-blue);
}

.ita-option-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ita-grad);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}

.ita-radio:checked + .ita-option-box .ita-option-check::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Option text */
.ita-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
    flex: 1;
}

.ita-option-time {
    font-family: 'DM Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--ita-dark);
    transition: color .2s;
}

.ita-radio:checked + .ita-option-box .ita-option-time {
    background: var(--ita-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ita-option-desc {
    font-size: 11px;
    color: var(--ita-muted);
    font-weight: 500;
    letter-spacing: .03em;
    z-index: 1;
}

/* Option number badge */
.ita-option-num {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #d1d5db;
    z-index: 1;
}

.ita-radio:checked + .ita-option-box .ita-option-num {
    color: rgba(79,142,247,.4);
}

/* Error */
.ita-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ita-error.show { display: block; animation: ita-fadein .3s ease both; }

/* Button */
.ita-btn {
    width: 100%;
    padding: 15px 28px;
    background: var(--ita-grad);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    position: relative;
    box-shadow: 0 8px 24px -4px rgba(79,142,247,.4);
    letter-spacing: .01em;
}

.ita-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(79,142,247,.5);
}

.ita-btn:active { transform: translateY(0); }

.ita-btn-icon svg { width: 18px; height: 18px; }

.ita-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ita-spin .7s linear infinite;
}

@keyframes ita-spin { to { transform: rotate(360deg); } }

.ita-btn.loading .ita-btn-text,
.ita-btn.loading .ita-btn-icon { display: none; }

.ita-btn.loading .ita-btn-loader { display: block; }

.ita-privacy {
    text-align: center;
    font-size: 11.5px;
    color: #9ca3af;
    margin: 14px 0 0;
}

/* ── Uspjeh ekran ────────────────────────────────────────────────────────── */
.ita-success-card {
    text-align: center;
}

.ita-success-inner {
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SVG check animation */
.ita-checkmark { width: 80px; height: 80px; margin-bottom: 28px; }

.ita-check-circle {
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
    animation: ita-draw-circle .6s ease .2s forwards;
}

.ita-check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: ita-draw-check .4s ease .8s forwards;
}

@keyframes ita-draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes ita-draw-check {
    to { stroke-dashoffset: 0; }
}

.ita-ordinal {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--ita-muted);
    letter-spacing: .04em;
    margin: 0 0 12px;
}

.ita-success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ita-dark);
    margin: 0 0 10px;
    line-height: 1.3;
}

.ita-success-msg {
    font-size: 15px;
    color: var(--ita-muted);
    margin: 0 0 6px;
}

.ita-success-sig {
    font-size: 14px;
    font-weight: 600;
    background: var(--ita-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .ita-header  { padding: 24px 20px 20px; }
    .ita-body    { padding: 20px 20px 28px; }
    .ita-success-inner { padding: 40px 24px; }
    .ita-title   { font-size: 14px; }
}
