/* custom-order-form.css - futuristic UI */

:root{
  --bg:#0d0d1a;
  --card:#0f0f1f;
  --accent1:#00ffaa;
  --accent2:#0099ff;
  --muted:#9aa6b2;
  --error:#ff4757;
}

/* Container / card */
.cof-container { padding: 30px 16px; display:flex; justify-content:center; position:relative; }
.cof-card {
  width:100%; max-width:760px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 18px;
  padding: 26px;
  color: #eaf6f2;
  box-shadow: 0 16px 40px rgba(2,6,23,0.6), 0 0 40px rgba(0,159,255,0.03) inset;
  border: 1px solid rgba(255,255,255,0.03);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Error Message */
.cof-error {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--error);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 90%;
  text-align: center;
}

/* Header */
.cof-title { font-size: 22px; margin: 0 0 6px; text-align:center; background: linear-gradient(90deg,var(--accent1),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; font-weight:700; }
.cof-subtitle { text-align:center; color: rgba(230,255,245,0.6); margin-bottom: 20px; font-size:14px; }

/* Section titles */
.cof-title-small { font-size:14px; color:var(--accent1); margin-bottom:8px; font-weight:600; text-transform:uppercase; letter-spacing:0.8px; }

/* Buttons group */
.cof-buttons { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:15px; justify-content:center; }

/* Buttons */
.cof-btn, .fancy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex: 1 0 auto;
  min-width: 100px;
  max-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#1b1b2b,#262637);
  color:#eaf6f2;
  font-weight:600;
  text-transform:none;
  cursor:pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: all 0.28s cubic-bezier(.2,.9,.2,1);
  border: 1px solid rgba(255,255,255,0.025);
  text-align: center;
  white-space: nowrap;
}

.cof-btn i { font-size:16px; width:18px; text-align:center; color: #fff; opacity:0.95; }
.cof-btn span { font-size:14px; }
.cof-btn:hover, .fancy-btn:hover { transform:translateY(-6px); box-shadow: 0 16px 35px rgba(0,150,255,0.12); background: linear-gradient(135deg,var(--accent1),var(--accent2)); color:#02111a; }

/* active */
.cof-btn.active, .fancy-btn.active {
  background: linear-gradient(135deg,var(--accent1),var(--accent2));
  color:#02111a; transform:translateY(-4px);
  box-shadow: 0 16px 45px rgba(0,150,255,0.18);
}

/* Input */
.cof-input {
  width:100%; 
  padding: 14px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  color:#eaf6f2;
  font-size: 16px;
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease;
  box-sizing: border-box;
}
.cof-input:focus { box-shadow: 0 6px 20px rgba(0,159,255,0.12); border-color: rgba(0,255,170,0.2); }

/* footer area */
.cof-footer { display:flex; gap:16px; align-items:center; margin-top:20px; flex-wrap:wrap; justify-content:space-between; }
.cof-price-box { background: rgba(255,255,255,0.02); padding:12px 16px; border-radius:12px; min-width:150px; text-align:center; border:1px solid rgba(255,255,255,0.02); }
.cof-price-box h4 { margin:0; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:0.8px; }
#total-price { margin:6px 0 0; font-size:20px; color: var(--accent1); font-weight:800; }

/* CTA */
.cof-cta { 
  width:220px; 
  padding:14px 18px; 
  border-radius:14px; 
  border:none; 
  font-weight:700; 
  font-size:16px; 
  cursor:pointer;
  background: linear-gradient(90deg,var(--accent1),var(--accent2)); 
  color:#02111a; 
  box-shadow: 0 18px 45px rgba(0,159,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cof-cta:hover:not(:disabled) { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(0,150,255,0.18); }
.cof-cta[disabled], .cof-cta[aria-disabled="true"] { background:#2b2b33; color:#9aa6b2; cursor:not-allowed; box-shadow:none; transform:none; }

/* pulse animation for buy-ready state */
.pulse { animation: pulseAnim 1.2s infinite; }
@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(0,255,170,0.28); }
  70% { box-shadow: 0 0 0 18px rgba(0,255,170,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,170,0); }
}

/* popup */
.cof-popup { 
  display:none; 
  position:fixed; 
  inset:0; 
  background: rgba(1,2,6,0.7); 
  z-index:9999; 
  align-items:center; 
  justify-content:center; 
  padding: 16px;
}
.cof-popup.show { display:flex; }
.cof-popup-content { 
  width:100%; 
  max-width:480px; 
  padding:26px; 
  border-radius:14px; 
  background: linear-gradient(180deg,#08101a,#0b1222); 
  color:#eaf6f2; 
  text-align:center; 
  box-shadow: 0 26px 60px rgba(0,0,0,0.6); 
  border:1px solid rgba(255,255,255,0.02); 
}
.cof-popup-content h2 { color: var(--accent1); margin-bottom:8px; }
.popup-actions { margin-top:18px; display:flex; gap:12px; justify-content:center; flex-wrap: wrap; }

/* Responsive Design */
@media (max-width:720px){
  .cof-card { padding: 20px 16px; }
  .cof-title { font-size: 20px; }
  .cof-subtitle { font-size: 13px; }
  .cof-title-small { font-size: 13px; }
  
  .cof-buttons { gap:8px; }
  .cof-buttons .cof-btn,
  .cof-buttons .fancy-btn {
    flex: 1 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 80px;
    padding: 10px 12px;
    font-size: 13px;
    gap: 6px;
  }
  
  .cof-btn i { font-size: 14px; }
  .cof-btn span { font-size: 12px; }
  
  .cof-input { padding: 16px; font-size: 16px; }
  
  .cof-footer { flex-direction:column; align-items:stretch; gap:12px; }
  .cof-cta { width:100%; margin-bottom:8px; }
  .cof-price-box { width:100%; order:2; }
}

@media (max-width:480px){
  .cof-container { padding: 20px 12px; }
  
  .cof-buttons .cof-btn,
  .cof-buttons .fancy-btn {
    flex: 1 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 70px;
    padding: 10px;
    font-size: 12px;
  }
  
  .cof-popup { padding: 12px; }
  .cof-popup-content { padding: 20px 16px; }
  .popup-actions { flex-direction: column; gap: 10px; }
  .popup-actions .cof-btn { width: 100%; }
}

@media (max-width:360px){
  .cof-buttons .cof-btn,
  .cof-buttons .fancy-btn {
    flex: 1 0 100%;
    max-width: 100%;
  }
}