/* Complete quote.css file */

.rq-qt * {
    box-sizing: border-box;
}

.rq-qt .page-title {
    text-align: center;
    font-weight: 700;
    color: #000;
    font-size: 30px;
    margin-bottom: 1rem;
}

/* Panel Styling */
.rq-qt .panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rq-qt .panel .panel-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    border-radius: 7px 7px 0 0;
    text-align: center;
}

.rq-qt .panel .panel-body {
    padding: 20px;
    background: #FBF8F4;
}

.rq-qt .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Form Labels and Controls */
.rq-qt label.form-label {
    font-weight: 600;
    color: #2f3b52;
    padding-left: 10px;
    font-size: 14px;
}

.rq-qt .form-label.required:after {
    content: " *";
    color: #e02b27;
    font-weight: bold;
}

.rq-qt .form-control,
.rq-qt .form-select {
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    height: 40px !important;
    margin: 5px 0px;
    background-color: #fff;
    min-width: 140px;
    color: #000;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rq-qt .form-control:focus,
.rq-qt .form-select:focus {
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.rq-qt .form-control.is-invalid,
.rq-qt .form-select.is-invalid {
    border-color: #e02b27;
    background-image: none;
}

.rq-qt .form-control:valid:not(:placeholder-shown),
.rq-qt .form-select:valid {
    border-color: #28a745;
}

/* Panel Quote Grid Layout */
.panel-quote.mb-2 {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Field Error Styling */
.rq-qt .field-error {
    color: #e02b27;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Strip Section */
.rq-qt .strip {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: 16px;
}

.rq-qt .strip + .strip {
    margin-top: 0.75rem;
}

.strip.residential-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Radio Pills */
.rq-qt .radio-pill .form-check {
    margin-right: 20px;
}

.rq-qt .radio-pill .form-check-input {
    margin-top: 0.15rem;
}

/* Box Table Styling */
.rq-qt .box-table {
    background: #fff;
    border: 1px solid #e2e1e1;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1.5rem;
}

.rq-qt .box-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0;
}

.rq-qt .box-head .section-title {
    margin: 0;
    font-size: 18px;
    color: white;
}

/* Table Styling */
.rq-qt .table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

.rq-qt .table th {
    background: #f1f3f4;
    border: 1px solid #e2e1e1;
    font-weight: 600;
    padding: 12px 8px;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    color: #2f3b52;
}

.rq-qt .table td {
    padding: 10px 8px;
    border: 1px solid #e2e1e1;
    vertical-align: middle;
    text-align: center;
    font-size: 16px;
}

/* Box Table Specific */
.rq-qt #boxes-table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

.rq-qt #boxes-table th {
    background: #f8f9fa;
    border: 1px solid #e2e1e1;
    font-weight: 600;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    color: #2f3b52;
}

.rq-qt #boxes-table td {
    padding: 8px 6px;
    border: 1px solid #e2e1e1;
    vertical-align: middle;
    text-align: center;
    min-width: 80px;
}

.rq-qt #boxes-table .form-control,
.rq-qt #boxes-table .form-select {
    font-size: 12px;
    padding: 4px 6px;
    height: auto;
    min-height: 32px;
    border: 1px solid #ced4da;
    margin: 0;
    width: 100%;
    border-radius: 4px;
}

.rq-qt #boxes-table .form-control:focus,
.rq-qt #boxes-table .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
}

.rq-qt #boxes-table .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 28px;
    border-radius: 4px;
}

.rq-qt .box-number {
    font-weight: 600;
    color: #2f3b52;
    font-size: 12px;
}

.rq-qt #boxes-table .form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
    font-size: 11px;
}

.rq-qt #boxes-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rq-qt #boxes-table tbody tr:hover {
    background-color: #e9ecef;
}

/* Button Styling */
.rq-qt .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    font-size: 16px;
    min-width: 200px;
}

.rq-qt .btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.rq-qt .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.rq-qt .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.rq-qt .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.rq-qt #add-box-btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
}

.rq-qt #add-box-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.rq-qt .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rq-qt .btn-danger:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Submit Section */
.rq-qt .submit-wrap {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Table Responsive */
.rq-qt .table-responsive {
    border-radius: 0 0 8px 8px;
}

/* Loading Animation */
.rq-qt .loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.rq-qt .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.rq-qt .loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.rq-qt .success-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 8px;
    margin: 20px 0;
}

.rq-qt .success-message i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rq-qt .page-title {
        font-size: 22px;
        margin-top: 30px;
    }
    
    .panel-quote.mb-2 {
        grid-template-columns: 100px 1fr;
        font-size: 14px;
    }
    
    .rq-qt .panel-body {
        padding: 15px;
    }
    
    .rq-qt .table th,
    .rq-qt .table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .rq-qt #boxes-table td {
        font-size: 14px;
    }
    
    .rq-qt .form-control,
    .rq-qt .form-select {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .rq-qt .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .rq-qt .box-head {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .rq-qt .box-head .section-title {
        font-size: 16px;
    }
    
    .rq-qt .section-title {
        font-size: 16px;
    }
    
    .rq-qt .strip {
        font-size: 14px;
    }
    
    .rq-qt .box-table {
        margin-top: 1rem;
    }
    
    .rq-qt #add-box-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .rq-qt #boxes-table th,
    .rq-qt #boxes-table td {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .rq-qt #boxes-table .form-control,
    .rq-qt #boxes-table .form-select {
        font-size: 10px;
        padding: 2px 3px;
        min-height: 24px;
    }
    
    .rq-qt #boxes-table .btn-sm {
        padding: 2px 4px;
        font-size: 9px;
        min-width: 20px;
    }
}

@media (max-width: 1200px) {
    .rq-qt #boxes-table th,
    .rq-qt #boxes-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .rq-qt #boxes-table .form-control,
    .rq-qt #boxes-table .form-select {
        font-size: 11px;
        padding: 3px 4px;
        min-height: 28px;
    }
    
    .rq-qt .box-head .section-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .rq-qt .table-responsive {
        border-radius: 0 0 8px 8px;
    }
    
    .rq-qt #boxes-table {
        min-width: 700px;
    }
    
    .rq-qt #boxes-table th:first-child,
    .rq-qt #boxes-table td:first-child {
        min-width: 50px;
    }
    
    .rq-qt #boxes-table th:last-child,
    .rq-qt #boxes-table td:last-child {
        min-width: 40px;
    }
    
    .rq-qt .table th,
    .rq-qt .table td {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .rq-qt .btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Legacy compatibility */
.requestquote-index-index .panel-body {
    background-color: #FBF8F4;
}

.requestquote-index-index .form-control {
    color: #000;
    border: 1px solid #dfe3e8;
    margin: 0px;
}

.requestquote-index-index .row.g-3 .mt-3 {
    align-items: center;
    border: 1px solid #dfe3e8;
    background-color: #FBF8F4;
}

.requestquote-index-index .submit-wrap button.btn.btn-primary {
    font-size: 16px;
    min-width: 200px;
}

.requestquote-index-index table.table.table-bordered td {
    font-size: 16px;
    border: 1px solid #e2e1e1 !important;
}

.requestquote-index-index table.table.table-bordered {
    margin: 0px;
}

.requestquote-index-index td.text-center.align-middle {
    min-width: 80px;
}