/* Scoped styles for Odzyskaj Więcej Kalkulator - Design System v2 */

/* Import Host Grotesk and Inter */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@400;500;700;800&family=Inter:wght@400;500;700&display=swap');

.owc-calculator {
    max-width: 600px;
    min-width: 475px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 24px;
    /* radius_large */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* shadow_card */
    font-family: 'Host Grotesk', 'Inter', sans-serif;
    color: #000000;
    /* CSS Reset */
    box-sizing: border-box;
    line-height: 1.6;
}

.owc-calculator * {
    box-sizing: border-box;
}

/* Typography Overrides */
.owc-calculator h3 {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 20px;
}

.owc-calculator p {
    font-size: 16px;
    color: #4D4D4D;
    /* text_secondary */
    margin-bottom: 15px;
}

/* Progress Bar */
.owc-calculator .owc-progress-bar {
    height: 8px;
    background: #E6E6E6;
    /* border */
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.owc-calculator .owc-progress {
    height: 100%;
    background: #FFD400;
    /* primary */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Form Groups */
.owc-calculator .owc-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.owc-calculator .owc-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owc-calculator .owc-form-group {
    margin-bottom: 24px;
    /* grid_gap */
}

.owc-calculator .owc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #000000;
    font-size: 14px;
    font-family: 'Host Grotesk', sans-serif;
}

/* Inputs */
.owc-calculator .owc-form-group input[type="text"],
.owc-calculator .owc-form-group input[type="number"],
.owc-calculator .owc-form-group input[type="tel"],
.owc-calculator .owc-form-group input[type="email"],
.owc-calculator .owc-form-group input[type="file"],
.owc-calculator .owc-form-group select,
.owc-calculator .owc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    /* border */
    border-radius: 8px;
    /* radius_small */
    background-color: #FFFFFF;
    color: #000000;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none;
    height: 48px;
    /* Consistent height */
}

.owc-calculator .owc-form-group textarea {
    height: auto;
}

.owc-calculator .owc-form-group input:focus,
.owc-calculator .owc-form-group select:focus {
    border-color: #000000;
    /* accent */
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.owc-calculator .owc-form-group input.error,
.owc-calculator .owc-form-group select.error {
    border-color: #FF0000;
    background-color: #FFF5F5;
}

/* Buttons */
.owc-calculator .owc-buttons-split {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.owc-calculator .owc-btn-next,
.owc-calculator .owc-btn-submit,
.owc-calculator .owc-btn-approx,
.owc-calculator .owc-btn-prev {
    padding: 14px 24px;
    border-radius: 16px;
    /* radius_medium */
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Host Grotesk', sans-serif;
    text-align: center;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owc-calculator .owc-btn-next,
.owc-calculator .owc-btn-submit {
    background: #000000;
    /* secondary/black */
    color: #FFFFFF;
    flex: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.owc-calculator .owc-btn-next:hover,
.owc-calculator .owc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
}

.owc-calculator .owc-btn-approx {
    background: #27ae60;
    /* Keep green for approx or change to Yellow? Let's check design. */
    /* Design says Primary is Yellow. But Approx usually implies "Good". 
       Let's stick to Green for money/success context, or use Yellow per brand? 
       Let's use Yellow #FFD400 with Black text for the "Highlight" button if Approx is the main action. 
       Actually, approx button isn't standard in the flow logic, wait.
       The CSS had .owc-btn-approx but the HTML doesn't seem to use it in the main flow? 
       Ah, I see it in CSS but maybe logic? 
       Let's style it as Primary (Yellow) just in case. */
    background: #FFD400;
    color: #000000;
    flex: 2;
}

.owc-calculator .owc-btn-prev {
    background: #F7F7F7;
    /* surface */
    color: #000000;
    flex: 1;
    border: 1px solid #E6E6E6;
}

.owc-calculator .owc-btn-prev:hover {
    background: #E6E6E6;
}

/* Result Box */
.owc-calculator .owc-result-box {
    text-align: center;
    background: #F7F7F7;
    /* surface */
    padding: 32px;
    border-radius: 24px;
    /* radius_large */
    margin-bottom: 24px;
    border: 1px solid #E6E6E6;
}

.owc-calculator .owc-result-amount {
    font-size: 42px;
    font-weight: 800 !important;
    font-family: 'Host Grotesk', sans-serif;
    color: #27ae60 !important;
    margin: 16px 0;
    letter-spacing: -0.03em;
}

.owc-calculator .owc-result-msg {
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    font-size: 18px;
}

.owc-calculator .owc-disclaimer {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
}

/* Privacy Link Hover Fix */
.owc-calculator a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.owc-calculator a:hover {
    color: #FFD400 !important;
    /* Yellow on hover or keep visible? User said "jest na biało". forcing a color. */
}

/* Checkboxes */
.owc-calculator .owc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.owc-calculator .owc-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    border: 2px solid #E6E6E6;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background: white;
}

.owc-calculator .owc-checkbox input[type="checkbox"]:checked {
    background-color: #FFD400;
    border-color: #FFD400;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.owc-calculator .owc-checkbox label {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: #4D4D4D;
}

/* Loader */
.owc-calculator .owc-spinner {
    border: 6px solid #F7F7F7;
    border-top: 6px solid #FFD400;
    /* Primary */
    width: 50px;
    height: 50px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Helper Button (Select All Consents) */
.owc-calculator .owc-btn-helper {
    background: #F7F7F7;
    border: 1px dashed #E6E6E6;
    color: #4D4D4D;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.owc-calculator .owc-btn-helper:hover {
    background: #FFD400;
    color: #000000;
    border-color: #FFD400;
    border-style: solid;
}

/* Quick Lead Form & Energy Lead Form - Professional Styling */
#owc-quick-lead,
#owc-energy-lead {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Host Grotesk', 'Inter', sans-serif;
    color: #000000;
    box-sizing: border-box;
    line-height: 1.6;
}

#owc-quick-lead *,
#owc-energy-lead * {
    box-sizing: border-box;
}

#owc-quick-lead .owc-form-header,
#owc-energy-lead .owc-form-header {
    text-align: center;
    margin-bottom: 32px;
}

#owc-quick-lead .owc-form-header h3,
#owc-energy-lead .owc-form-header h3 {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #000000;
    margin: 0 0 12px 0;
}

#owc-quick-lead .owc-form-description,
#owc-energy-lead .owc-form-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

#owc-quick-lead .owc-form-group,
#owc-energy-lead .owc-form-group {
    margin-bottom: 24px;
}

#owc-quick-lead .owc-form-group label,
#owc-energy-lead .owc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #000000;
    font-size: 14px;
    font-family: 'Host Grotesk', sans-serif;
}

#owc-quick-lead .owc-form-group input[type="text"],
#owc-quick-lead .owc-form-group input[type="number"],
#owc-quick-lead .owc-form-group input[type="tel"],
#owc-quick-lead .owc-form-group input[type="email"],
#owc-energy-lead .owc-form-group input[type="text"],
#owc-energy-lead .owc-form-group input[type="number"],
#owc-energy-lead .owc-form-group input[type="tel"],
#owc-energy-lead .owc-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #000000;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none;
    height: 48px;
}

#owc-quick-lead .owc-form-group input:focus,
#owc-energy-lead .owc-form-group input:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#owc-quick-lead .owc-file-upload-box {
    background: linear-gradient(135deg, #FFFBEA 0%, #FFF8DC 100%);
    border: 2px dashed #FFD400;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

#owc-quick-lead .owc-file-upload-box:hover {
    border-color: #000000;
}

#owc-quick-lead .owc-file-info {
    font-size: 15px;
    color: #4D4D4D;
    margin: 0 0 12px 0;
    font-weight: 600;
}

#owc-quick-lead input[type="file"]::-webkit-file-upload-button {
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#owc-quick-lead .owc-consent-section,
#owc-energy-lead .owc-consent-section {
    background: #F7F7F7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

#owc-quick-lead .owc-checkbox,
#owc-energy-lead .owc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#owc-quick-lead .owc-checkbox input[type="checkbox"],
#owc-energy-lead .owc-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    border: 2px solid #E6E6E6;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background: white;
}

#owc-quick-lead .owc-checkbox input[type="checkbox"]:checked,
#owc-energy-lead .owc-checkbox input[type="checkbox"]:checked {
    background-color: #FFD400;
    border-color: #FFD400;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

#owc-quick-lead .owc-checkbox label,
#owc-energy-lead .owc-checkbox label {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: #4D4D4D;
}

#owc-quick-lead .owc-btn-helper,
#owc-energy-lead .owc-btn-helper {
    background: #F7F7F7;
    border: 1px dashed #E6E6E6;
    color: #4D4D4D;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

#owc-quick-lead .owc-btn-helper:hover,
#owc-energy-lead .owc-btn-helper:hover {
    background: #FFD400;
    color: #000000;
    border-color: #FFD400;
    border-style: solid;
}

#owc-quick-lead .owc-btn-next,
#owc-energy-lead .owc-btn-next {
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Host Grotesk', sans-serif;
    text-align: center;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#owc-quick-lead .owc-btn-next:hover,
#owc-energy-lead .owc-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
}

#owc-quick-lead .owc-message,
#owc-energy-lead .owc-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 500;
}

#owc-quick-lead .owc-message.error,
#owc-energy-lead .owc-message.error {
    background: #FFF5F5;
    color: #c0392b;
    border: 2px solid #c0392b;
}

#owc-quick-lead .owc-message.success,
#owc-energy-lead .owc-message.success {
    background: #F0FFF4;
    color: #27ae60;
    border: 2px solid #27ae60;
}

#owc-quick-lead .owc-result-box,
#owc-energy-lead .owc-result-box {
    text-align: center;
    background: linear-gradient(135deg, #F0FFF4 0%, #E8F5E9 100%);
    padding: 40px;
    border-radius: 24px;
    border: 2px solid #27ae60;
}

#owc-quick-lead .owc-result-box h3,
#owc-energy-lead .owc-result-box h3 {
    font-size: 32px;
    color: #27ae60;
    font-family: 'Host Grotesk', sans-serif;
    margin: 0 0 16px 0;
    font-weight: 800;
}

/* Link Styling - Match Calculator */
#owc-quick-lead a,
#owc-energy-lead a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#owc-quick-lead a:hover,
#owc-energy-lead a:hover {
    color: #FFD400 !important;
}

/* Responsive Design */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {

    #owc-quick-lead,
    #owc-energy-lead {
        max-width: 700px;
        padding: 35px;
    }
}

/* Tablet Portrait (600px - 768px) */
@media (max-width: 768px) {

    #owc-quick-lead,
    #owc-energy-lead {
        max-width: 100%;
        padding: 30px;
    }

    #owc-quick-lead .owc-form-header h3,
    #owc-energy-lead .owc-form-header h3 {
        font-size: 26px;
    }

    #owc-quick-lead .owc-file-upload-box {
        padding: 18px;
    }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {

    .owc-calculator,
    #owc-quick-lead,
    #owc-energy-lead {
        min-width: auto;
        width: 100%;
        padding: 24px;
        border-radius: 16px;
    }

    #owc-quick-lead .owc-form-header h3,
    #owc-energy-lead .owc-form-header h3 {
        font-size: 24px;
    }

    #owc-quick-lead .owc-form-description,
    #owc-energy-lead .owc-form-description {
        font-size: 15px;
    }

    #owc-quick-lead .owc-file-upload-box {
        padding: 16px;
    }

    #owc-quick-lead .owc-consent-section,
    #owc-energy-lead .owc-consent-section {
        padding: 16px;
    }

    .owc-calculator .owc-result-amount {
        font-size: 32px;
    }

    .owc-calculator .owc-buttons-split {
        flex-direction: column-reverse;
    }
}

/* Extra Small Mobile (max 400px) */
@media (max-width: 400px) {

    #owc-quick-lead,
    #owc-energy-lead {
        padding: 20px;
        margin: 0 12px;
    }

    #owc-quick-lead .owc-form-header h3,
    #owc-energy-lead .owc-form-header h3 {
        font-size: 22px;
    }

    #owc-quick-lead .owc-result-box,
    #owc-energy-lead .owc-result-box {
        padding: 30px 20px;
    }
}

/* ============================
   COMPACT ENERGY LEAD FORM
   ============================ */

#owc-energy-lead.owc-compact {
    max-width: 600px;
    padding: 24px;
    border-radius: 16px;
}

#owc-energy-lead.owc-compact .owc-form-header {
    margin-bottom: 20px;
}

#owc-energy-lead.owc-compact .owc-form-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

#owc-energy-lead.owc-compact .owc-form-description {
    font-size: 14px;
    color: #666;
}

/* Inline fields - 3 columns */
#owc-energy-lead .owc-inline-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#owc-energy-lead .owc-inline-fields .owc-form-group {
    flex: 1;
    margin-bottom: 0;
}

#owc-energy-lead .owc-inline-fields input {
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
}

/* Compact consent section */
#owc-energy-lead .owc-consent-compact {
    background: #F7F7F7;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

#owc-energy-lead .owc-consent-compact .owc-form-group {
    margin-bottom: 8px;
}

#owc-energy-lead .owc-consent-compact .owc-form-group:last-child {
    margin-bottom: 0;
}

#owc-energy-lead .owc-consent-compact .owc-checkbox label {
    font-size: 12px;
}

/* Compact submit button */
#owc-energy-lead .owc-btn-compact {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 12px;
}

/* Small helper button for compact consent */
#owc-energy-lead .owc-btn-helper-small {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

/* Compact result box */
#owc-energy-lead .owc-result-compact {
    padding: 24px;
}

#owc-energy-lead .owc-result-compact h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

#owc-energy-lead .owc-result-compact p {
    font-size: 14px;
    margin: 0;
}

/* Responsive: Stack fields on mobile */
@media (max-width: 600px) {
    #owc-energy-lead .owc-inline-fields {
        flex-direction: column;
        gap: 12px;
    }

    #owc-energy-lead.owc-compact {
        padding: 20px;
    }

    #owc-energy-lead.owc-compact .owc-form-header h3 {
        font-size: 20px;
    }
}