/**
 * Shared styles for all calculation forms.
 */

.lyth-credit-calculator {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1d2327;
    --lyth-accent: #E6BE6A;
    --lyth-track-rest: #d7d7d7;
}

/* Use Elementor primary color for all form text by default. */
.lyth-credit-calculator,
.lyth-credit-calculator * {
    color: var(--e-global-color-primary);
}

/* Keep values/labels under sliders unchanged. */
.lyth-credit-calculator .lyth-slider-labels,
.lyth-credit-calculator .lyth-slider-labels * {
    color: #a7aaad;
}

/* Steps */
.lyth-step {
    display: none;
}

.lyth-step-active {
    display: block;
}

/* Exchange Rate */
.lyth-exchange-rate {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.lyth-exchange-rate strong {
    color: #000;
    font-weight: 600;
}

/* Calculator Container */
.lyth-calculator-container {
    padding: 22px 26px 28px;
}

/* Calculator Section */
.lyth-calculator-section {
    /* margin-bottom: 34px; */
}

.lyth-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.lyth-section-label {
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0;
    color: #3c434a;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.lyth-value-display {
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    color: #111;
    line-height: 1.15;
}

.lyth-value-main {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--lyth-accent);
}

.lyth-value-eur {
    color: #000;
}

.lyth-value-ron {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.lyth-currency {
    font-size: 16px;
    font-weight: 600;
    margin-left: 0;
}

.lyth-refi-head {
    align-items: center;
}

.lyth-refi-label {
    font-family: inherit;
    font-size: clamp(18px, 2.2vw, 31px);
    font-weight: 700;
    color: #173c7d;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.lyth-refi-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lyth-refi-years-input {
    width: 72px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: right;
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.lyth-refi-years-input:focus {
    outline: none;
}

.lyth-refi-years-input::-webkit-outer-spin-button,
.lyth-refi-years-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lyth-refi-years-input[type=number] {
    -moz-appearance: textfield;
}

/* Slider */
.lyth-slider {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lyth-accent) 0%, var(--lyth-accent) 0%, var(--lyth-track-rest) 0%, var(--lyth-track-rest) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: none !important;
    padding: 0 !important;
}

.lyth-credit-calculator input[type="range"] {
    padding: 0 !important;
}

.lyth-credit-calculator .elementor-kit-11 input:not([type="button"]):not([type="submit"]),
.lyth-credit-calculator .elementor-kit-11 textarea,
.lyth-credit-calculator .elementor-kit-11 .elementor-field-textual {

    padding: 0 !important;
}

.lyth-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: transparent;
}

.lyth-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lyth-accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    margin-top: -7px;
}

.lyth-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lyth-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.lyth-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a7aaad;
    margin-top: 6px;
}

/* Down Payment Info */
.lyth-down-payment-info {
    font-size: 12px;
    color: #a7aaad;
    margin-top: -4px;
    margin-bottom: 10px;
}

/* Loan Value Box */
.lyth-loan-value-box {
    background: #f3f4f5;
    padding: 22px 24px;
    border-radius: 10px;
    margin: 26px 0 22px;
    text-align: center;
    border: 1px solid #e2e4e7;
}

.lyth-loan-value-box-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.lyth-duration-box {
    min-width: 130px;
    border: 1px solid #d0d2d4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 14px;
    font-size: 32px;
    font-weight: 600;
    color: #2c3338;
}

.lyth-duration-box span:last-child {
    font-size: 22px;
    color: #555;
}

.lyth-duration-input {
    width: 72px;
    border: 0;
    background: transparent;
    font-size: 32px;
    font-weight: 600;
    color: #2c3338;
    text-align: right;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.lyth-duration-input:focus {
    outline: none;
}

.lyth-duration-input::-webkit-outer-spin-button,
.lyth-duration-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lyth-duration-input[type=number] {
    -moz-appearance: textfield;
}

.lyth-loan-value-label {
    font-size: 13px;
    color: #7a7f85;
    margin-bottom: 8px;
    text-transform: none;
}

.lyth-loan-value-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.lyth-loan-value-eur {
    font-size: 16px;
    color: #7a7f85;
    margin-left: 10px;
}

/* Loan Options */
.lyth-loan-options {
    margin: 40px 0;
}

.lyth-options-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
    color: #3c434a;
}

.lyth-options-title-left {
    text-align: left;
}

.lyth-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 26px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    overflow: hidden;
}

.lyth-option-card {
    position: relative;
    padding: 18px 16px;
    border: 0;
    border-right: 1px solid #dcdcde;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f6f7f7;
    display: block;
}

.lyth-option-card:last-child {
    border-right: 0;
}

.lyth-options-grid--single {
    grid-template-columns: 1fr;
}

.lyth-option-card-static {
    cursor: default;
}

.lyth-option-card-static:hover {
    background: #1f1f1f;
}

.lyth-option-card:hover {
    background: #fff;
}

.lyth-option-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lyth-option-card.lyth-option-checked {
    background: var(--e-global-color-primary);
    color: #fff;
}

.lyth-option-card.lyth-option-checked .lyth-option-type,
.lyth-option-card.lyth-option-checked .lyth-option-payment {
    color: #fff;
}

.lyth-option-card.lyth-option-checked .lyth-option-type *,
.lyth-option-card.lyth-option-checked .lyth-option-payment * {
    color: #fff;
}

.lyth-option-card.lyth-option-checked .lyth-rate {
    color: var(--lyth-accent) !important;
}

.lyth-option-content {
    pointer-events: none;
}

.lyth-option-type {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: #2c3338;
    text-transform: uppercase;
}

.lyth-rate {
    color: var(--lyth-accent);
}

.lyth-option-payment {
    font-size: 22px;
    font-weight: 800;
    color: var(--lyth-accent);
}

/* Buttons */
.lyth-btn-primary {
    width: 100%;
    padding: 18px 30px;
    background: var(--lyth-accent);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lyth-btn-next {
    max-width: 100%;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

.lyth-btn-primary:hover {
    filter: brightness(0.92);
}

.lyth-btn-secondary {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lyth-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Form Container */
.lyth-form-container {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
}

.lyth-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.lyth-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Groups */
.lyth-form-group {
    margin-bottom: 25px;
}

.lyth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.lyth-form-group input[type="text"],
.lyth-form-group input[type="email"],
.lyth-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lyth-form-group input:focus {
    outline: none;
    border-color: var(--lyth-accent);
}

/* Select Wrapper */
.lyth-select-wrapper {
    position: relative;
}

.lyth-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lyth-select-wrapper select:focus {
    outline: none;
    border-color: var(--lyth-accent);
}

.lyth-select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

/* Phone Wrapper */
.lyth-phone-wrapper {
    display: flex;
    gap: 10px;
}

.lyth-phone-wrapper input {
    flex: 1;
}

.lyth-phone-btn {
    width: 40px;
    height: 48px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.lyth-phone-btn:hover {
    background: #e0e0e0;
}

/* Checkbox */
.lyth-checkbox-group {
    margin-top: 30px;
}

.lyth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.lyth-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.lyth-checkbox-text {
    color: var(--e-global-color-primary);
}

/* Form Buttons */
.lyth-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.lyth-form-buttons .lyth-btn-primary {
    flex: 1;
}

.lyth-form-buttons .lyth-btn-secondary {
    flex: 0 0 auto;
}

/* Success Container */
.lyth-success-container {
    padding: 60px 30px;
    text-align: center;
}

.lyth-success-container h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.lyth-success-container p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .lyth-calculator-container {
        padding: 20px 20px 24px;
    }

    .lyth-section-label {
        font-size: 20px;
    }

    .lyth-value-display {
        font-size: 18px;
    }

    .lyth-loan-value-amount {
        font-size: 24px;
    }

    .lyth-option-payment {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .lyth-calculator-container {
        padding: 16px 14px 20px;
    }

    .lyth-credit-calculator .lyth-section-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    .lyth-section-label {
        font-size: 18px;
    }

    .lyth-credit-calculator .lyth-value-display {
        width: 100%;
        text-align: left !important;
        font-size: 18px;
    }

    .lyth-value-main {
        padding-bottom: 2px;
    }

    .lyth-value-ron {
        display: block;
        margin-left: 0;
        margin-top: 6px;
    }

    .lyth-loan-value-box {
        padding: 16px 14px;
        margin: 20px 0 16px;
    }

    .lyth-loan-value-box-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lyth-loan-value-amount {
        font-size: 22px;
    }

    .lyth-loan-value-eur {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 14px;
    }

    .lyth-refi-value {
        width: 100%;
    }

    .lyth-refi-years-input {
        width: 56px;
        text-align: left;
        font-size: 30px;
    }

    .lyth-options-grid {
        grid-template-columns: 1fr;
        border-right: 0;
    }

    .lyth-option-card {
        border-right: 0;
        border-bottom: 1px solid #dcdcde;
        padding: 14px 12px;
    }

    .lyth-option-card:last-child {
        border-bottom: 0;
    }

    .lyth-option-type {
        margin-bottom: 8px;
    }

    .lyth-option-payment {
        font-size: 20px;
    }

    .lyth-loan-options {
        margin: 28px 0;
    }

    .lyth-options-title {
        margin-bottom: 10px;
    }

    .lyth-form-container {
        padding: 18px 14px;
        border-radius: 6px;
    }

    .lyth-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .lyth-contact-form {
        max-width: 100%;
    }

    .lyth-form-group {
        margin-bottom: 16px;
    }

    .lyth-checkbox-group {
        margin-top: 20px;
    }

    .lyth-btn-primary {
        padding: 14px 16px;
        font-size: 14px;
    }

    .lyth-btn-next {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        display: block !important;
        text-align: center;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        line-height: 1.2;
        font-size: 13px !important;
        letter-spacing: 0 !important;
        padding: 12px 14px !important;
        border-radius: 999px;
        overflow: visible !important;
    }

    .lyth-form-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .lyth-form-buttons .lyth-btn-secondary {
        width: 100%;
    }

    .lyth-success-container {
        padding: 32px 14px;
    }

    .lyth-success-container h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .lyth-section-label {
        font-size: 16px;
    }

    .lyth-value-display {
        font-size: 16px;
    }

    .lyth-currency {
        font-size: 14px;
    }

    .lyth-slider-labels {
        font-size: 11px;
    }

    .lyth-option-type {
        font-size: 12px;
    }

    .lyth-option-payment {
        font-size: 18px;
    }

    .lyth-form-group label {
        font-size: 13px;
    }

    .lyth-checkbox-label {
        font-size: 13px;
    }

    .lyth-refi-years-input {
        font-size: 26px;
        width: 50px;
    }

    .lyth-btn-next {
        font-size: 11px !important;
        padding: 10px 10px !important;
    }
}
