/* =============================================
   PACT Weight Estimator — Pro Action Transport
   Version: 1.1.0
   ============================================= */

/* GENERAL STYLE */
.pact-volume-calculator {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px 30px;
    margin: 40px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    animation: pactSlideUp 0.5s ease-out;
}

.pact-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2ea3f2;
}

.pact-calculator-header h2 {
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pact-calculator-header p {
    color: #666666;
    font-size: 16px;
    margin: 0;
}

.pact-reference-note {
    background: #f7f9fc;
    border-left: 4px solid #2ea3f2;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.pact-reference-note p {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

/* LAYOUT */
.pact-columns-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pact-column {
    background: #fafafa;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    animation: pactSlideUp 0.6s ease-out;
}

/* ROOM SECTIONS */
.pact-room-section {
    margin-bottom: 25px;
}

.pact-room-section:last-child {
    margin-bottom: 0;
}

.pact-room-title {
    background: #2ea3f2;
    color: #ffffff;
    padding: 12px 15px;
    margin: 0 -20px 15px -20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pact-column:first-child .pact-room-title  { background: #2ea3f2; }
.pact-column:nth-child(2) .pact-room-title { background: #27ae60; }
.pact-column:nth-child(3) .pact-room-title { background: #e67e22; }

/* ITEMS */
.pact-item {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.pact-item:last-child { border-bottom: none; }

.pact-item-name {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

/* cuft spans — present in HTML for JS calculation, never shown */
.pact-item-cuft { display: none; }

.pact-item-input { width: 100%; }

.pact-item-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pact-item-input input:focus {
    outline: none;
    border-color: #2ea3f2;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

.pact-item-input input::-webkit-inner-spin-button,
.pact-item-input input::-webkit-outer-spin-button { opacity: 1; }

/* COLUMN SUBTOTALS — hidden from users */
.pact-column-subtotal { display: none; }

/* GRAND TOTAL */
.pact-grand-totals {
    background: linear-gradient(135deg, #2ea3f2 0%, #1e88d4 100%);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(46, 163, 242, 0.3);
}

.pact-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pact-total-box {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pact-total-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pact-total-value {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.pact-total-unit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    margin-top: 5px;
}

/* BUTTONS */
.pact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pact-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pact-btn-primary             { background: #ffffff; color: #2ea3f2; }
.pact-btn-primary:hover       { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.pact-btn-secondary           { background: transparent; color: #ffffff; border: 2px solid #ffffff; }
.pact-btn-secondary:hover     { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* BOXES & CARTONS — special highlight */
.pact-cartons-section {
    background: #fff8e6;
    border: 2px solid #f9b234;
    border-radius: 6px;
    padding: 20px;
}

.pact-cartons-section .pact-room-title {
    background: #f9b234;
    margin: -20px -20px 15px -20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pact-columns-container { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .pact-volume-calculator    { padding: 25px 15px; }
    .pact-calculator-header h2 { font-size: 24px; }
    .pact-item                 { grid-template-columns: 1fr 50px; gap: 8px; }
    .pact-item-name            { font-size: 13px; }
    .pact-total-value          { font-size: 32px; }
    .pact-actions              { flex-direction: column; }
    .pact-btn                  { width: 100%; }
}

/* ANIMATION */
@keyframes pactSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
