/* shirokoformatka_calc.css */

.shiro-pricing-section {
    padding: 30px 0;
    background: #fff;
}

.shiro-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.shiro-green-card {
    background: #007c5b;
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.shiro-gray-card {
    background: #e0e0e0;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.shiro-card-inner {
    background: #fff;
    border-radius: 2px;
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
}

.shiro-card-left {
    width: 55%;
    border-right: 1px solid #ddd;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.shiro-card-left img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.shiro-card-right {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.shiro-card-info {
    padding: 15px;
    flex: 1;
}

.shiro-card-info h4 {
    color: #007c5b;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.shiro-card-info .desc-note {
    font-size: 12px;
    color: #f39c12;
    font-weight: 700;
    margin-bottom: 8px;
}

.shiro-card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shiro-card-info ul li {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 3px;
    position: relative;
    padding-left: 10px;
    color: #333;
}

.shiro-card-info ul li::before {
    content: "-";
    position: absolute;
    left: 0;
}

.shiro-card-bottom {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.shiro-price-box {
    margin-bottom: 10px;
}

.shiro-price-box .price-label {
    font-size: 24px;
    font-weight: 800;
    color: #007c5b;
}

.shiro-price-box .price-unit {
    font-size: 14px;
    font-weight: 700;
    color: #007c5b;
}

.shiro-calc-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.shiro-calc-btn {
    background: #00a651;
    color: #fff;
    border: none;
    padding: 10px 0;
    width: 100%;
    font-size: 18px;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.shiro-calc-btn:hover {
    background: #008a44;
}

/* Video Section Styles */
.shiro-video-container {
    background: #e0e0e0;
    padding: 40px 20px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: stretch;
    grid-gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shiro-video-container::-webkit-scrollbar {
    display: none;
}

.shiro-video-card {
    min-width: 200px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shiro-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.shiro-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shiro-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: 2px solid #fff;
}

.shiro-video-play::after {
    content: "▶";
    margin-left: 3px;
}

.shiro-video-label {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #007c5b;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    background: #fff;
}

.shiro-video-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 2;
}

.shiro-video-arrow.left {
    left: 5px;
}

.shiro-video-arrow.left::before {
    content: "❮";
}

.shiro-video-arrow.right {
    right: 5px;
}

.shiro-video-arrow.right::after {
    content: "❯";
}

/* Modal Calculator Redesign (Forceful Alignment & Screenshot 1 Match) */
.calc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.calc-modal-overlay.active {
    display: flex !important;
}

.shiro-modal {
    background: #fff !important;
    width: 800px !important;
    max-width: 95% !important;
    max-height: 98vh;
    border-radius: 20px !important;
    padding: 25px 35px !important;
    position: relative;
    overflow-y: auto;
    border: 1px solid #333 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #333 !important;
    text-align: left !important;
    /* Force left align for all text */
}

.calc-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.shiro-modal-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 0 0 20px 0 !important;
    color: #000 !important;
    text-align: left !important;
}

/* Force Horizontal Alignment for Main Fields */
.shiro-form-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.form-group.flex {
    display: flex !important;
    flex-direction: row !important;
    /* CRITICAL: side-by-side */
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    text-align: left !important;
}

.form-group label {
    width: 240px !important;
    /* fixed width for side labels */
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #888 !important;
    margin: 0 15px 0 0 !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.input-wrapper {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: flex-start !important;
}

.input-wrapper select,
.input-wrapper input {
    height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    width: 380px !important;
    /* Uniform length */
    box-sizing: border-box !important;
}

.size-inputs {
    display: flex !important;
    gap: 10px !important;
    width: 380px !important;
}

.size-inputs input {
    width: calc(50% - 5px) !important;
}

/* Small Help Buttons */
.help-btn {
    width: 15px !important;
    height: 15px !important;
    background: #8bc34a !important;
    color: #fff !important;
    border-radius: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: help !important;
    flex-shrink: 0 !important;
}

/* Radios/Checkboxes - Fixed Size */
input[type="checkbox"],
input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #007c5b !important;
    display: inline-block !important;
}

/* Services section spacing */
.services-title {
    color: #007c5b !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 15px 0 10px 0 !important;
}

.service-row-new {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #888 !important;
}

.sr-left-wide {
    min-width: 220px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sr-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 140px !important;
}

.sr-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 !important;
}

.sr-option {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #000 !important;
}

.sr-option input[type="text"] {
    height: 30px !important;
    padding: 0 8px !important;
    border: 1px solid #333 !important;
    font-size: 13px !important;
    width: 200px !important;
}

/* Results section (Screenshot 1: No Boxes, Colored Rows) */
.results-section {
    background: #f1fcf4 !important;
    padding: 20px !important;
    border-radius: 5px !important;
    margin-top: 20px !important;
    border: none !important;
}

.results-title {
    color: #007c5b !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
}

.res-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.res-label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #007c5b !important;
    white-space: nowrap !important;
    /* Force to one line */
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.res-val {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-align: right !important;
    white-space: nowrap !important;
    /* Force to one line */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.res-total .res-label {
    color: #f1810b !important;
    font-size: 20px !important;
}

.res-total .res-val {
    color: #f1810b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Hide any box leftovers if they exist */
.res-val-box {
    display: none !important;
}

.warning-text {
    color: #f1810b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin: 15px 0 5px 0 !important;
}

.help-text {
    font-size: 12px !important;
    color: #007c5b !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Buttons */
.modal-action-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.shiro-btn {
    flex: 1 !important;
    border: none !important;
    height: 44px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-teal {
    background: #007c5b !important;
}

.btn-green {
    background: #28a745 !important;
}

.btn-orange {
    background: #f1810b !important;
}

@media (max-width: 600px) {
    .shiro-modal {
        padding: 15px !important;
    }

    .form-group.flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .form-group label {
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .input-wrapper select,
    .input-wrapper input,
    .size-inputs {
        width: 100% !important;
    }

    .res-row {
        flex-direction: row !important;
    }
}