/* Ported verbatim from resources/views/quotes/index.blade.php's head <style> —
   only the rules the wizard's separated Box/Television detail sections use.
   (--primary-blue is already defined in assets_v1/style/style.css :root.) */

.input-pill {
    border-radius: 50px !important;
    padding: 12px 20px;
    border: 1px solid #dee2e6;
    box-shadow: none !important;
    height: 48px;
    box-sizing: border-box;
}

.input-pill:focus {
    border-color: var(--primary-blue);
}

.merged-input-group {
    border: 1px solid #dee2e6;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 5px 5px 5px 20px;
    background-color: #fff;
    transition: all 0.2s ease;
    height: 48px;
    box-sizing: border-box;
}

.merged-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.merged-input-group .form-control {
    border: none;
    padding: 8px 0;
    box-shadow: none;
    background: transparent;
    flex: 1;
}

.merged-input-group .unit-select {
    border: 0 !important;
    border-radius: 50px;
    background-color: #fff;
    width: 70px;
    height: 38px;
    font-size: 0.85rem;
    color: #333;
    padding: 0 10px;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: none !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.merged-input-group .unit-select:hover {
    background-color: #f8f9fa;
}

.package-detail-section {
    margin-bottom: 30px;
    display: none !important;
    /* Force hidden by default */
}

.package-detail-section[style*="display: block"] {
    display: block !important;
    /* Override when shown */
}

.box-details-card {
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
}

.box-item {
    position: relative;
}

/* Shared button styles for Box, TV, and Auto sections */
.remove-box-btn,
.remove-tv-btn,
.btn.remove-box-btn,
.btn.remove-tv-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

.remove-box-btn:hover,
.remove-tv-btn:hover,
.btn.remove-box-btn:hover,
.btn.remove-tv-btn:hover {
    background-color: #bb2d3b !important;
    color: white !important;
}

.add-box-row-btn,
.add-tv-row-btn,
.btn.add-box-row-btn,
.btn.add-tv-row-btn {
    background-color: #00c851 !important;
    color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

.add-box-row-btn:hover,
.add-tv-row-btn:hover,
.btn.add-box-row-btn:hover,
.btn.add-tv-row-btn:hover {
    background-color: #00a843 !important;
    color: white !important;
}

.dimensions-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dimensions-group>div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dimensions-group .input-pill {
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 12px 20px;
    width: 100%;
}

.dimensions-group .input-pill:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
    outline: none;
}

.dimensions-group .input-pill.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.dimension-separator {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 14px;
    align-self: flex-start;
}

/* Fix Chargeable Weight height to match other fields */
.box-chargeable-weight,
.tv-chargeable-weight {
    height: 48px !important;
    box-sizing: border-box;
}

/* Ensure all input fields have same fixed height */
.input-group-pill,
.merged-input-group,
.input-pill {
    height: 48px;
    box-sizing: border-box;
}

.input-group-pill .form-select,
.merged-input-group .form-control,
.merged-input-group .unit-select {
    height: 100%;
}

/* Ensure form-select with input-pill has same height and border */
.form-select.input-pill {
    height: 48px !important;
    box-sizing: border-box;
    border: 1px solid #dee2e6 !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
}

.form-select.input-pill:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
    outline: none !important;
}

.form-select.input-pill.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}
