/* Additional styles for the flat-file 3DPRINTEAZY site */

/* Policy pages */
.policy-content { max-width: 780px; margin: 0 auto; }
.policy-content h2 { margin-top: 40px; font-size: 22px; }
.policy-content ul { padding-left: 20px; }
.policy-content li { margin-bottom: 10px; }

/* Contact form */
.contact-card form { display: grid; gap: 16px; }
.contact-card label { font-weight: 600; font-size: 14px; }
.contact-card input,
.contact-card textarea { width: 100%; padding: 12px 14px; background: #111; border: 1px solid #2a2a2a; border-radius: 8px; color: #f5f5f5; font-size: 15px; }
.contact-card input:focus,
.contact-card textarea:focus { outline: none; border-color: #c9a962; }
.form-success { color: #7fd67e; }
.form-error { color: #ff6b6b; }

/* Quote tool */
.quote-form { max-width: 720px; margin: 0 auto; }
.quote-card { background: #111; border: 1px solid #2a2a2a; border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.quote-card h3 { margin-top: 0; margin-bottom: 18px; font-size: 18px; }
.drop-zone { border: 2px dashed #3a3a3a; border-radius: 10px; padding: 36px 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.drop-zone:hover, .drop-zone.dragover { border-color: #c9a962; background: #161616; }
.drop-zone.uploading { opacity: 0.6; pointer-events: none; }
.drop-prompt svg { stroke: #c9a962; margin-bottom: 10px; }
.file-info { display: flex; align-items: center; justify-content: center; gap: 16px; color: #f5f5f5; }

/* Material accordion */
.material-accordion { border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; }
.accordion-section { border-bottom: 1px solid #2a2a2a; }
.accordion-section:last-child { border-bottom: none; }
.accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #0f0f0f; color: #f5f5f5; border: none; cursor: pointer; font-weight: 600; }
.accordion-header:hover { background: #161616; }
.accordion-icon::after { content: '+'; font-size: 20px; color: #c9a962; }
.accordion-section.open .accordion-icon::after { content: '−'; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-section.open .accordion-body { max-height: 600px; }
.color-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 16px; }
.color-swatch { background: #0f0f0f; border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px; cursor: pointer; text-align: center; transition: border-color 0.15s; }
.color-swatch:hover { border-color: #c9a962; }
.color-swatch.selected { border-color: #c9a962; background: #1a1a1a; }
.swatch-color { display: block; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid #3a3a3a; }
.swatch-label { font-size: 12px; color: #d4d4d4; }

/* Field row */
.field-row { display: grid; gap: 8px; margin-bottom: 16px; }
.field-row label { font-weight: 600; font-size: 14px; }
.field-row select,
.field-row input { width: 100%; max-width: 200px; padding: 10px 12px; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; color: #f5f5f5; }

/* Quote summary */
.quote-summary-card { background: #141414; }
.quote-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2a2a2a; }
.quote-row:last-child { border-bottom: none; }
.quote-label { color: #a0a0a0; }
.quote-value { color: #f5f5f5; font-weight: 500; }
.quote-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 2px solid #c9a962; font-size: 20px; }
.quote-total strong { color: #c9a962; }
.quote-loading { text-align: center; color: #a0a0a0; padding: 20px; }
.autofit-row { background: #1f1f1f; padding: 10px; border-radius: 6px; margin-top: 10px; font-size: 14px; color: #c9a962; }
.quote-actions { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }
.quote-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cart */
.cart-empty { text-align: center; padding: 40px 0; }
.cart-items { margin-bottom: 32px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #2a2a2a; }
.cart-item h3 { margin: 0; font-size: 16px; }
.qty-input { width: 60px; padding: 8px; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; color: #f5f5f5; text-align: center; }
.cart-totals { background: #111; border: 1px solid #2a2a2a; border-radius: 10px; padding: 24px; max-width: 360px; margin-left: auto; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 12px; }

/* Confirmation */
.confirmation-card { background: #111; border: 1px solid #2a2a2a; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.confirmation-address { margin: 16px 0; padding: 14px; background: #161616; border-radius: 8px; line-height: 1.6; }
.confirmation-items { padding-left: 20px; margin: 10px 0 20px; }
.confirmation-items li { margin-bottom: 8px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.checkout-form .contact-card { margin: 0; }
.form-error-box { background: #2a0f0f; border: 1px solid #5c1c1c; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; }
.form-error-box ul { margin: 0; padding-left: 18px; }
.form-error-box li { color: #ff6b6b; margin-bottom: 6px; }
.field-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-summary .cart-totals { margin-left: 0; max-width: none; }
.checkout-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #2a2a2a; font-size: 14px; }
.checkout-line:last-child { border-bottom: none; }
.checkout-line.total { font-size: 20px; margin-top: 10px; padding-top: 10px; border-top: 2px solid #c9a962; border-bottom: none; }

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .field-row-group { grid-template-columns: 1fr; }
}

/* Header active nav */
.main-nav a.active { color: #c9a962; }
