/* ============================================
   Formulár: Odstúpenie od kúpnej zmluvy
   WP Plugin: odstupenie-wc
   ============================================ */

.od-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Úspech / chyba --- */
.od-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
}

.od-error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.od-error-box ul {
    list-style: disc;
    margin: 8px 0 0 20px;
    padding: 0;
}

.od-error-box li {
    margin: 3px 0;
}

.od-info-box {
    background: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Seller box --- */
.od-seller-box {
    background: #fdf5fa;
    border: 1px solid #e8cde1;
    border-left: 4px solid #9c2a6e;
    border-radius: 0 4px 4px 0;
    padding: 16px 20px;
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.od-seller-box p { margin: 0; }

/* --- Nadpisy sekcií --- */
.od-section-heading {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #9c2a6e !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #f0d9ea;
    padding-bottom: 8px;
    margin: 28px 0 16px !important;
}

/* --- Skupiny polí --- */
.od-field-group {
    margin-bottom: 18px;
}

/* --- Labely --- */
.od-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.od-field-group label sup {
    color: #d9534f;
    font-weight: 700;
}

/* --- Inputy --- */
.od-input {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #bcc7d2 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.od-input:hover {
    border-color: #9fb0c0 !important;
}

.od-input:focus {
    border-color: #9c2a6e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(156, 42, 110, 0.15) !important;
}

.od-input::placeholder { color: #aab4be; }

.od-textarea {
    min-height: 110px;
    resize: vertical;
}

.od-iban {
    max-width: 380px !important;
}

/* --- Pomocný text --- */
.od-help {
    display: block;
    font-size: 12.5px;
    color: #8a96a3;
    margin: 5px 0 0;
}

/* --- Chybový stav --- */
.od-field-group.has-error label {
    color: #c9302c;
}

.od-field-group.has-error .od-input {
    border-color: #d9534f !important;
    background-color: #fff8f8 !important;
}

.od-field-group.has-error .od-input:focus {
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15) !important;
}

/* --- Grid --- */
.od-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.od-col-4 { width: 33.333%; padding: 0 8px; box-sizing: border-box; }
.od-col-5 { width: 41.666%; padding: 0 8px; box-sizing: border-box; }
.od-col-6 { width: 50%;     padding: 0 8px; box-sizing: border-box; }
.od-col-8 { width: 66.666%; padding: 0 8px; box-sizing: border-box; }

/* --- Checkbox --- */
.od-checkbox-wrap {
    background: #fdf5fa;
    border: 1px solid #e8cde1;
    border-radius: 4px;
    padding: 12px 16px;
}

.od-checkbox-wrap label {
    font-weight: normal !important;
    font-size: 14px !important;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.od-checkbox-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.od-req { color: #d9534f; }

/* --- Tlačidlo --- */
.od-submit-row {
    margin-top: 24px;
}

.od-btn-submit {
    background: #9c2a6e !important;
    border: none !important;
    color: #fff !important;
    padding: 13px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    letter-spacing: 0.3px;
}

.od-btn-submit:hover,
.od-btn-submit:focus {
    background: #7d2158 !important;
    color: #fff !important;
}

.od-btn-submit.od-btn-loading,
.od-btn-submit:disabled {
    background: #c98ab8 !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

/* --- Späť odkaz --- */
.od-back-btn {
    display: inline-block;
    margin-top: 12px;
    color: #9c2a6e;
    text-decoration: underline;
}

/* --- Poznámka --- */
.od-required-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: #8a96a3;
}
.od-required-note sup { color: #d9534f; }

/* --- Mobil --- */
@media (max-width: 600px) {
    .od-col-4, .od-col-5, .od-col-6, .od-col-8 { width: 100%; }
    .od-btn-submit { width: 100% !important; }
    .od-iban { max-width: 100% !important; }
}
