/* ============================================
   GLOBAL STYLES - Tariff Calculator
   ============================================ */

/* ---------- BASE & RESET ---------- */
body {
    font-family: 'Inter', sans-serif;
}

/* ---------- HEADER SECTION ---------- */
#head_part {
    width: 100%;
    background: white;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 20;
}

header {
    position: relative;
    width: 100%;
    height: 103px;
    background: #FFFFFF !important;
}

.header-left {
    position: absolute;
    left: 32px;
    top: 28px;
    width: 52px;
    height: 52px;
}

.active-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60px;
    background: rgba(0, 112, 133, 0.05);
}

.header-content {
    position: absolute;
    left: 104px;
    top: 27px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.header-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 30px;
    color: #16151C;
    margin: 0;
}

.header-description {
    font-weight: 300;
    font-size: 14px;
    line-height: 22px;
    color: #A2A1A8;
    margin: 0;
    margin-top: 4px;
}

/* Header Responsive */
@media (max-width: 768px) {
    .header-left {
        left: 16px;
        top: 20px;
        width: 40px;
        height: 40px;
    }
    .header-content {
        left: 70px;
        top: 20px;
    }
    .header-title {
        font-size: 20px;
        line-height: 24px;
    }
    .header-description {
        font-size: 10px;
        line-height: 14px;
    }
}

@media (min-width: 1920px) {
    header {
        width: 1920px;
        left: calc(50% - 1920px/2);
        margin: 0 auto;
    }
    .header-left {
        left: 32px;
    }
    .header-content {
        left: 104px;
    }
}

/* ---------- MAIN BACKGROUND ---------- */
.main-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #F2F8F9;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main-background {
        min-height: 100%;
        padding-bottom: 20px;
    }
}

.main-container {
    background: #F2F8F9 !important;
}

/* ---------- MAIN SECTION ---------- */
.main-section {
    width: 100%;
    max-width: 955px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .main-section {
        max-width: 90%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-section {
        max-width: 100%;
        padding: 0 16px;
    }
}

/* ---------- MAIN TEXT BLOCK ---------- */
.main-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 60px;
}

.main-left {
    flex: 0 0 80%;
    max-width: 80%;
}

.main-right {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: right;
}

.main-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 24px;
    color: #16151C;
    margin: 0;
}

.main-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .main-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 30px;
    }
    .main-left,
    .main-right {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
}

/* ---------- INFO TRIGGER (Подробнее) ---------- */
.info-trigger {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #16151C;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.info-trigger span {
    font-size: 26px;
    line-height: 26px;
    display: inline-block;
}

.info-trigger:hover {
    color: #007085;
}

.info-icon-small {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
    cursor: pointer;
}

/* ---------- INFO CONTENT (Expandable) ---------- */
.info-content {
    margin-top: 16px;
    padding: 16px;
}

@media (max-width: 768px) {
    .info-content {
        margin-top: 16px;
        padding: 16px;
    }
    .main-description {
        font-size: 13px;
    }
}

/* ---------- GLOBAL ELEMENTS ---------- */
button,
select,
input,
.calculated-fields {
    border-radius: 10px;
}

.placeholder-option {
    display: none;
}


/* Heat value input container */
.calc-val {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 24px;
}

/* Label styling - same as org-group */
.calc-val label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin-bottom: 8px;
}

/* Input styling - from Figma */
.calc-val .number-input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    font-size: 16px;
    color: #16151C;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
    font-weight: 600;
}

/* Focus state - green border */
.calc-val .number-input:focus {
    outline: none;
    border-color: #80B5A9;
    box-shadow: 0 0 0 1px rgba(0, 112, 133, 0.2);
}

/* Hover state */
.calc-val .number-input:hover {
    border-color: #80B5A9;
}

/* Optional: remove spinner arrows */
.calc-val .number-input::-webkit-inner-spin-button,
.calc-val .number-input::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* Placeholder styling - matches select placeholder */
.calc-val .number-input::placeholder {
    font-size: 16px;
    color: #A2A1A8;
    font-weight: 400;
}

/* For browsers that don't support ::placeholder */
.calc-val .number-input::-webkit-input-placeholder {
    font-size: 16px;
    color: #A2A1A8;
    font-weight: 400;
}

.calc-val .number-input::-moz-placeholder {
    font-size: 16px;
    color: #A2A1A8;
    font-weight: 400;
}

.calc-val .number-input:-ms-input-placeholder {
    font-size: 16px;
    color: #A2A1A8;
    font-weight: 400;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .calc-val {
        margin-top: 24px;
    }

    .calc-val .number-input {
        height: 48px;
        font-size: 14px;
    }

    .calc-val label {
        font-size: 14px;
    }
}