/* Exdizajn – Raskid Ugovora – Frontend CSS */

.exru-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    font-size: 16px;
    color: #1f1f23;
}

.exru-form-intro {
    margin-bottom: 24px;
    color: #3f3f46;
}

/* Obavijesti */
.exru-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #27272a;
}

.exru-notice--info {
    background: #f3efff;
    color: #000 !important;
    border-left: 4px solid #7c3aed;
}

.exru-notice--warning {
    background: #fff8e5;
    border-left: 4px solid #f0a500;
}

.exru-notice--error {
    background: #fde8e8;
    border-left: 4px solid #d63638;
    color: #b42325;
}

/* Koraci */
.exru-step {
    background: #fff;
    color: #1f1f23;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.exru-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    color: #18181b;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeef0;
}

.exru-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(109, 40, 217, 0.25);
}

/* Polja */
.exru-field {
    margin-bottom: 20px;
}

.exru-field:last-child {
    margin-bottom: 0;
}

.exru-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #27272a;
}

.exru-required {
    color: #dc2626;
    margin-left: 2px;
}

/* Input */
.exru-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 7px;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff !important;
    color: #18181b !important;
}

.exru-input::placeholder {
    color: #a1a1aa;
}

.exru-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.exru-input.exru-input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.exru-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select */
.exru-input select,
select.exru-input {
    background: #fff !important;
    color: #18181b !important;
}

/* Pomoćni tekst */
.exru-help {
    font-size: 0.85em;
    color: #71717a !important;
    margin: 5px 0 0;
}

.exru-error {
    display: block;
    color: #dc2626 !important;
    font-size: 0.85em;
    margin-top: 4px;
    min-height: 18px;
}

/* Checkbox */
.exru-field--checkbox {
    margin-bottom: 16px;
}

.exru-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.5;
    color: #27272a;
}

.exru-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c3aed;
}

/* Submit */
.exru-submit-wrap {
    margin-top: 24px;
    text-align: center;
}

.exru-submit-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #fff !important;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.25);
}

.exru-submit-btn:hover {
    opacity: 0.92;
    box-shadow: 0 7px 20px rgba(109, 40, 217, 0.35);
}

.exru-submit-btn:active {
    transform: scale(0.98);
}

.exru-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.exru-submit-help {
    font-size: 0.85em;
    color: #71717a !important;
    margin-top: 10px;
}

/* Success */
.exru-success {
    text-align: center;
    padding: 40px 24px;
    background: #f0fff4;
    color: #1f1f23 !important;
    border: 1px solid #84e1a6;
    border-radius: 12px;
}

.exru-success__icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.exru-success__title {
    font-size: 1.4em;
    background: #fff;
    color: #166534;
    margin-bottom: 12px;
}

.exru-success__info {
    background: #fff;
    color: #27272a;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
    font-size: 0.9em;
}

/* Gumbi */
.exru-btn-wrap {
    margin: 16px 0;
}

.exru-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95em;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.exru-btn:hover {
    opacity: 0.9;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.exru-btn--link {
    background: transparent;
    color: #6d28d9 !important;
    padding: 0;
    font-weight: 600;
    text-decoration: underline !important;
}

.exru-btn--footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 50px;
}

/* Završna obavijest */
.exru-thankyou-notice {
    background: #f8f7ff;
    color: #27272a;
    border: 1px solid #e4defc;
    border-left: 4px solid #7c3aed;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 7px;
    font-size: 0.95em;
}


/* Dodatna zaštita od CSS-a teme */
.exru-form-wrap,
.exru-form-wrap p,
.exru-form-wrap label,
.exru-form-wrap span,
.exru-form-wrap div {
    color: inherit;
}

.exru-form-wrap input,
.exru-form-wrap textarea,
.exru-form-wrap select {
    color: #18181b !important;
    background-color: #fff !important;
}

/* Mobile */
@media (max-width: 480px) {
    .exru-step {
        padding: 16px;
        border-radius: 10px;
    }

    .exru-btn--footer {
        bottom: 12px;
        right: 12px;
        font-size: 0.9em;
        padding: 8px 16px;
    }
}


#exru-form label.exru-label, .exru-notice.exru-notice--error, .exru-checkbox-label {
    color: #000 !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #000 !important;
    text-shadow: none !important;
}
