/* Borehole Yield & Storage Tank Calculator
-------------------------------------------------- */

.borehole-storage-content .entry-content {
    max-width: 1000px;
    margin: 0 auto;
}

.borehole-storage {
    margin-top: 30px;
}

.borehole-storage__intro {
    font-size: 17px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

.borehole-storage__form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.borehole-storage__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 767px) {
    .borehole-storage__grid {
        grid-template-columns: 1fr;
    }
}

.borehole-storage__field {
    display: flex;
    flex-direction: column;
}

.borehole-storage__label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
}

.borehole-storage__input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.borehole-storage__input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.borehole-storage__input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: #ffffff;
}

.borehole-storage__input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.borehole-storage__select {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    min-width: 100px;
}

.borehole-storage__select--unit {
    background: #fff7ed;
    font-weight: 600;
    color: #c2410c;
}

.borehole-storage__input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #fff7ed;
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #c2410c;
    min-width: 48px;
}

.borehole-storage__hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.borehole-storage__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.borehole-storage__actions--results {
    justify-content: flex-end;
    margin-top: 20px;
}

.borehole-storage__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.borehole-storage__btn:active {
    transform: translateY(1px);
}

.borehole-storage__btn--primary {
    background: #f97316;
    color: #ffffff;
}

.borehole-storage__btn--primary:hover {
    background: #ea580c;
}

.borehole-storage__btn--secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.borehole-storage__btn--secondary:hover {
    background: #e2e8f0;
}

.borehole-storage__results {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.borehole-storage__results--visible {
    display: block;
}

.borehole-storage__results-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.borehole-storage__summary {
    margin-bottom: 24px;
}

.borehole-storage__summary-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

.borehole-storage__summary-status--ok {
    background: #dcfce7;
    color: #166534;
}

.borehole-storage__summary-status--warning {
    background: #ffedd5;
    color: #9a3412;
}

.borehole-storage__summary-status--error {
    background: #fee2e2;
    color: #991b1b;
}

.borehole-storage__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .borehole-storage__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .borehole-storage__cards {
        grid-template-columns: 1fr;
    }
}

.borehole-storage__card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.borehole-storage__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08);
}

.borehole-storage__card-icon {
    font-size: 28px;
    color: #f97316;
    margin-bottom: 10px;
}

.borehole-storage__card-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.borehole-storage__card-value {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.borehole-storage__card-unit {
    font-size: 13px;
    color: #64748b;
}

.borehole-storage__recommendation {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
}

.borehole-storage__recommendation h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.borehole-storage__recommendation p {
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0;
}

@media print {
    .site-header,
    .site-footer,
    .borehole-storage__actions,
    .inner-page-hero {
        display: none !important;
    }

    .borehole-storage__results {
        display: block !important;
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
    }
}
