/*
 * Jeneratör Yakıt Tüketimi Hesaplayıcı
 * Turuncu tasarım
 */

.jyth-calculator {
    --jyth-primary: #ea571c;
    --jyth-primary-hover: #c94412;
    --jyth-primary-light: #fff3ed;
    --jyth-primary-shadow: rgba(234, 87, 28, 0.22);
    --jyth-text: #3f3f3f;
    --jyth-muted: #777777;
    --jyth-border: #e3e3e3;
    --jyth-background: #ffffff;
    --jyth-soft: #f7f7f7;

    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 12px;
    color: var(--jyth-text);
    font-family: inherit;
    box-sizing: border-box;
}

.jyth-calculator *,
.jyth-calculator *::before,
.jyth-calculator *::after {
    box-sizing: border-box;
}

.jyth-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 32px;
    overflow: hidden;
    background: var(--jyth-background);
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.jyth-heading {
    margin: 0 0 26px;
    text-align: center;
}

.jyth-title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--jyth-primary) !important;
    font-family: inherit !important;
    font-size: clamp(27px, 4vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.jyth-description {
    max-width: 610px;
    margin: 12px auto 0 !important;
    padding: 0 !important;
    color: var(--jyth-muted) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

.jyth-form-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 15px;
    width: 100%;
    align-items: end;
}

.jyth-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.jyth-field label {
    display: block;
    width: 100%;
    margin: 0 0 7px !important;
    padding: 0 !important;
    color: var(--jyth-text) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.jyth-field input,
.jyth-field select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    color: var(--jyth-text) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid var(--jyth-border) !important;
    border-radius: 7px !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 50px !important;
    text-transform: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease !important;
}

.jyth-field select {
    cursor: pointer;
}

.jyth-field input:hover,
.jyth-field select:hover {
    border-color: #cfcfcf !important;
}

.jyth-field input:focus,
.jyth-field select:focus {
    border-color: var(--jyth-primary) !important;
    box-shadow: 0 0 0 4px rgba(234, 87, 28, 0.13) !important;
}

.jyth-field input::placeholder {
    color: #9a9a9a !important;
    opacity: 1;
}

.jyth-pf-field {
    grid-column: 1 / -1;
}

.jyth-pf-field[hidden] {
    display: none !important;
}

body .jyth-calculator .jyth-calculate,
body .jyth-calculator button.jyth-calculate,
body .jyth-calculator input.jyth-calculate {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 52px !important;
    margin: 15px 0 0 !important;
    padding: 13px 20px !important;
    color: #ffffff !important;
    background: #ea571c !important;
    background-color: #ea571c !important;
    background-image: none !important;
    border: 1px solid #ea571c !important;
    border-radius: 7px !important;
    outline: none !important;
    box-shadow: 0 7px 18px rgba(234, 87, 28, 0.24) !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease !important;
}

body .jyth-calculator .jyth-calculate:hover,
body .jyth-calculator .jyth-calculate:focus,
body .jyth-calculator button.jyth-calculate:hover,
body .jyth-calculator button.jyth-calculate:focus {
    color: #ffffff !important;
    background: #c94412 !important;
    background-color: #c94412 !important;
    background-image: none !important;
    border-color: #c94412 !important;
    box-shadow: 0 9px 22px rgba(234, 87, 28, 0.34) !important;
    opacity: 1 !important;
    outline: none !important;
}

body .jyth-calculator .jyth-calculate:active {
    color: #ffffff !important;
    background: #b83b0e !important;
    background-color: #b83b0e !important;
    border-color: #b83b0e !important;
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(234, 87, 28, 0.25) !important;
}

.jyth-error {
    display: none;
    width: 100%;
    margin: 14px 0 0;
    padding: 11px 13px;
    color: #a52323;
    background: #fff4f4;
    border: 1px solid #efb4b4;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.5;
}

.jyth-error.is-visible {
    display: block;
}

.jyth-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin: 18px 0 0;
    padding: 13px 15px;
    color: var(--jyth-text);
    background: var(--jyth-primary-light);
    border: 1px solid rgba(234, 87, 28, 0.18);
    border-left: 4px solid var(--jyth-primary);
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.5;
}

.jyth-summary-label {
    color: var(--jyth-text);
}

.jyth-summary strong {
    flex: 0 0 auto;
    color: var(--jyth-primary) !important;
    font-size: 16px;
    font-weight: 700;
}

.jyth-table-wrap {
    display: block;
    width: 100%;
    margin: 16px 0 0;
    overflow-x: auto;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.jyth-table {
    width: 100% !important;
    min-width: 480px;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    color: var(--jyth-text);
    font-family: inherit;
    font-size: 15px;
}

.jyth-table thead,
.jyth-table tbody,
.jyth-table tr {
    border: 0 !important;
}

.jyth-table th,
.jyth-table td {
    height: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid var(--jyth-border) !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.jyth-table th {
    color: #ffffff !important;
    background: #ea571c !important;
    background-color: #ea571c !important;
    background-image: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.jyth-table th:first-child,
.jyth-table td:first-child {
    width: 42%;
}

.jyth-table tbody tr:nth-child(even) td {
    background: #fafafa !important;
}

.jyth-table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.jyth-table tbody tr:hover td {
    background: #fff5f0 !important;
}

.jyth-table td strong {
    display: block;
    margin: 0;
    color: var(--jyth-text) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.jyth-table td > span {
    display: inline-block;
    color: var(--jyth-primary) !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.jyth-table td small {
    display: block;
    margin: 3px 0 0;
    color: var(--jyth-muted) !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.jyth-info {
    display: block;
    width: 100%;
    margin: 22px 0 0;
    padding: 20px;
    color: var(--jyth-text);
    background: var(--jyth-soft);
    border-left: 4px solid var(--jyth-primary);
    border-radius: 8px;
}

.jyth-info h3 {
    margin: 0 0 15px !important;
    padding: 0 !important;
    color: var(--jyth-primary) !important;
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.jyth-formula {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 10px;
    padding: 12px 13px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
}

.jyth-formula span {
    color: var(--jyth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.jyth-formula strong {
    color: var(--jyth-primary) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
}

.jyth-note {
    margin: 15px 0 0 !important;
    padding: 0 !important;
    color: var(--jyth-muted) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

/* Mobil görünüm */
@media screen and (max-width: 600px) {
    .jyth-calculator {
        margin: 20px auto;
        padding: 0 7px;
    }

    .jyth-card {
        padding: 21px 14px;
        border-radius: 11px;
    }

    .jyth-heading {
        margin-bottom: 21px;
    }

    .jyth-title {
        font-size: 27px !important;
    }

    .jyth-description {
        margin-top: 10px !important;
        font-size: 14px !important;
    }

    .jyth-form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .jyth-pf-field {
        grid-column: auto;
    }

    .jyth-field input,
    .jyth-field select {
        height: 50px !important;
        min-height: 50px !important;
        font-size: 16px !important;
    }

    body .jyth-calculator .jyth-calculate {
        min-height: 50px !important;
        padding: 12px 14px !important;
    }

    .jyth-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .jyth-table {
        min-width: 420px;
        font-size: 14px;
    }

    .jyth-table th,
    .jyth-table td {
        padding: 12px 10px !important;
    }

    .jyth-table th:first-child,
    .jyth-table td:first-child {
        width: 44%;
    }

    .jyth-info {
        padding: 16px;
    }

    .jyth-info h3 {
        font-size: 20px !important;
    }

    .jyth-formula {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .jyth-formula strong {
        text-align: left;
    }
}

@media screen and (max-width: 400px) {
    .jyth-title {
        font-size: 24px !important;
    }

    .jyth-card {
        padding: 18px 11px;
    }

    .jyth-table {
        min-width: 380px;
        font-size: 13px;
    }
}