/* WC Odstúpenie od zmluvy — formulár */

.oodz-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Intro ── */
.oodz-intro {
    margin-bottom: 28px;
}
.oodz-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.oodz-intro p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Deadline info ── */
.oodz-deadline-info {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.oodz-deadline-ok {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.oodz-deadline-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.oodz-deadline-expired {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    font-weight: 500;
}

/* ── Guest note ── */
.oodz-guest-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.5;
}

/* ── Form layout ── */
.oodz-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.oodz-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .oodz-row { grid-template-columns: 1fr; }
    .oodz-form { padding: 20px 16px; }
}

.oodz-field {
    margin-bottom: 20px;
}
.oodz-field:last-of-type {
    margin-bottom: 0;
}

/* ── Labels ── */
.oodz-field > label,
.oodz-field fieldset legend {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: #222;
    border: none;
    padding: 0;
}
.oodz-req {
    color: #c0392b;
    margin-left: 2px;
}
.oodz-optional {
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
}

/* ── Inputs ── */
.oodz-form input[type="text"],
.oodz-form input[type="email"],
.oodz-form select,
.oodz-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: auto;
}
.oodz-form input[type="text"]:focus,
.oodz-form input[type="email"]:focus,
.oodz-form select:focus,
.oodz-form textarea:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26,26,46,.12);
    background: #fff;
}
.oodz-form textarea {
    resize: vertical;
    min-height: 72px;
}

/* ── Radio ── */
.oodz-field fieldset {
    border: none;
    margin: 0;
    padding: 0;
}
.oodz-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.oodz-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
}
.oodz-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a2e;
    cursor: pointer;
}

/* ── GDPR checkbox ── */
.oodz-field-gdpr {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 14px;
    margin-top: 4px;
}
.oodz-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.4;
    font-weight: 400 !important;
}
.oodz-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #1a1a2e;
    cursor: pointer;
}

/* ── Submit button ── */
.oodz-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 28px;
    background: #c0392b;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    width: 100%;
    letter-spacing: .01em;
}
.oodz-submit-btn:hover {
    background: #a93226;
}
.oodz-submit-btn:active {
    transform: scale(.98);
}
.oodz-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── Spinner ── */
.oodz-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: oodz-spin .7s linear infinite;
}
@keyframes oodz-spin {
    to { transform: rotate(360deg); }
}

/* ── Footer note ── */
.oodz-footer-note {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

/* ── Error ── */
.oodz-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
}

/* ── Success ── */
.oodz-success {
    background: #eafaf1;
    border: 1px solid #2ecc71;
    border-radius: 10px;
    padding: 36px 32px;
    text-align: center;
}
.oodz-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.oodz-success h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #1a7a3a;
}
.oodz-success p {
    margin: 0;
    color: #2d6a4f;
    font-size: 0.95rem;
    line-height: 1.5;
}
