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

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

/* ── Complaint form (wider, more sections) ── */
.oodz-complaint-wrapper {
    max-width: 820px;
}

.oodz-seller-header {
    margin: 12px 0 16px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}
.oodz-seller-header strong {
    color: #111827;
}
.oodz-seller-legal {
    font-size: 14px;
    color: #6b7280;
}

.oodz-form-subtitle {
    margin: 8px 0 0 !important;
    font-size: 15px;
    font-style: italic;
    color: #6b7280;
}

.oodz-section-title {
    margin: 28px 0 14px !important;
    padding-bottom: 6px;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.oodz-field-help {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ── Photo upload ── */
.oodz-photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    background: #fafafa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
}
.oodz-photo-drop:hover,
.oodz-photo-drop.dragover {
    border-color: #1a1a2e;
    background: #f1f5f9;
}
.oodz-photo-drop-icon {
    font-size: 2rem;
    opacity: 0.6;
}
.oodz-photo-drop-text {
    font-size: 0.9rem;
    color: #475569;
}
.oodz-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.oodz-photo-preview:empty {
    display: none;
}
.oodz-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
}
.oodz-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.oodz-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.oodz-photo-remove:hover {
    background: rgba(220, 38, 38, 0.9);
}
.oodz-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ── Intro ── */
.oodz-intro {
    margin-bottom: 28px;
}
.oodz-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
    line-height: 1.3;
}
.oodz-intro p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* ── 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;
}

/* ── Custom admin notice (top of form) ── */
.oodz-custom-notice {
    margin: 12px 0 16px;
    padding: 14px 18px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.55;
}
.oodz-custom-notice p {
    margin: 0 0 8px;
}
.oodz-custom-notice p:last-child {
    margin-bottom: 0;
}
.oodz-custom-notice a {
    color: #1d4ed8;
    text-decoration: underline;
}
.oodz-custom-notice strong {
    color: #1e3a8a;
}

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

/* ── 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: 15px;
    margin-bottom: 8px;
    color: #222;
    border: none;
    padding: 0;
    line-height: 1.4;
}
.oodz-req {
    color: #c0392b;
    margin-left: 2px;
}
.oodz-optional {
    font-weight: 400;
    color: #888;
    font-size: 13px;
}

/* ── Inputs ── */
.oodz-form input[type="text"],
.oodz-form input[type="tel"],
.oodz-form input[type="email"],
.oodz-form input[type="date"],
.oodz-form input[type="number"],
.oodz-form input[type="url"],
.oodz-form select,
.oodz-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: auto;
    font-family: inherit;
    line-height: 1.4;
}
.oodz-form input[type="text"]:focus,
.oodz-form input[type="tel"]:focus,
.oodz-form input[type="email"]:focus,
.oodz-form input[type="date"]:focus,
.oodz-form input[type="number"]:focus,
.oodz-form input[type="url"]: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: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: #333;
}
.oodz-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #1a1a2e;
    cursor: pointer;
}

/* ── GDPR checkbox ── */
.oodz-field-gdpr {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 16px;
    margin-top: 4px;
}
.oodz-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    font-weight: 400 !important;
}
.oodz-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    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: 16px 28px;
    background: #c0392b;
    color: #fff;
    font-size: 17px;
    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: 14px 0 0;
    font-size: 13px;
    color: #777;
    text-align: center;
    line-height: 1.5;
}

/* ── Error ── */
.oodz-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
}

/* ── 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;
}
