/* Phenomlab Calculator Styles V2.1 - Consolidated */
:root {
    --pl-gradient: linear-gradient(90deg, #B81F6B 0%, #D63B82 80%, #E32581 100%);
}

.phenom-calc-wrapper {
    font-family: 'Poppins', sans-serif;
    background: #1B1F23;
    padding: 35px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.3);
}

.calc-header {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 900 !important;
    font-size: 14pt !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase;
    margin: 0 0 15px 0 !important;
    color: #ffffff !important;
    border: none !important;
}

.salary-display {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
}

.fractional-days-select {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: inherit;
    border: 2px solid #333;
    border-radius: 4px;
    background: #121212;
    color: #fff;
    margin-bottom: 30px;
    padding: 10px;
}

/* HORIZONTAL ROW STYLES */
.calc-result-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    margin-top: 0;
}

.result-item {
    flex: 1;
    text-align: center;
}

.result-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.result-label {
    display: block;
    font-weight: 900;
    font-size: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #fff;
    padding-top: 20px;
}

.result-value {
    font-weight: 900;
    font-size: 2.5rem; /* Scaled for 3-across layout */
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: var(--pl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.calc-disclaimer {
    font-size: inherit;
    line-height: 1.6;
    color: #888;
    margin-top: 30px;
    text-align: center;
}

/* Slider Implementation */
.ft-salary-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-content-link);
    outline: none;
    margin: 20px 0 40px 0;
    border-radius: 5px;
    cursor: pointer;
}

.ft-salary-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--color-content-link); /* Set to Black to match your visual */
    cursor: pointer;
    border: 3px solid var(--color-content-link);
    margin-top: -11px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ft-salary-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 5px;
}

.ft-salary-slider::-moz-range-thumb {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 3px solid #fff;
    box-sizing: border-box;
}

.ft-salary-slider::-moz-range-progress {
    background: var(--pl-gradient);
    height: 8px;
    border-radius: 5px;
}

.ft-salary-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #000;
    border-radius: 5px;
}

/* HORIZONTAL ROW STYLES (DESKTOP) */
.calc-result-section {
    display: flex;
    flex-direction: row; /* Horizontal by default */
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    margin-top: 0;
}

.result-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
}

/* Vertical dividers for desktop only */
.result-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* MOBILE STACKING LOGIC */
@media screen and (max-width: 600px) {
    .calc-result-section {
        flex-direction: column; /* Stack vertically on mobile */
    }

    .result-item {
        width: 100%;
        border-right: none !important; /* Remove vertical dividers */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add horizontal dividers */
        padding: 20px 0;
    }

    .result-item:last-child {
        border-bottom: none; /* Clean up the bottom item */
    }

    .result-value {
        font-size: 2.2rem; /* Slightly larger on mobile for readability */
    }
}