/* Base Layout */
.checkout-container {
  font-family: "Segoe UI", Arial, sans-serif;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  color: #333;
}

.checkout-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.checkout-hero h1 {
  font-size: 2rem;
  font-weight: 600;
}

.checkout-hero p {
  color: #666;
}

/* Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 3fr 2fr; /* left wider for form, right for items */
  gap: 2rem;
}

.checkout-form,
.checkout-items {
  background: #fff;
  padding: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 1.6rem;
}

/* Fieldsets */
fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
}
.form-field small {
	font-size: 12px;
  font-style: italic;
}
legend {
  font-weight: 600;
  padding: 0 0.5rem;
}
input[type=password] {
  font-family: inherit;
}
input[type="password"] {
  -webkit-text-security: disc; /* Chrome/Safari */
  text-security: disc;         /* legacy property */
}
/* Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 14px;
  font-family: inherit;
}
input:focus, select:focus,textarea:focus {
  border-color: #0078d4;
}
textarea {
  min-height: 80px;
  resize: vertical;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Captcha Feedback */
.feedback {
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 0.5rem;
}

/* Shake Animation */
.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* Item List Cards */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-card {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 4px;
  background: #f9f9f9;
}

.item-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
}
.item-card:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-card:hover .item-thumb {
    transform: scale3d(1.14, 1.14, 1);
    transition: 0.3s;
}
.item-info {
  flex: 1;
}

.item-info a {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.item-info a:hover {
  text-decoration: underline;
}

.qty-input {
  width: 60px;
  margin-top: 0.5rem;
}

.delete-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #c0392b;
}

/* Responsive Collapse */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-thumb {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }
}
.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
.checkout-hero {
  text-align: center;
  margin-bottom: 0;
  padding: 1rem;
  margin-top: -12px;
  color: #fff;
  border-radius: 8px;
}

.checkout-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 30px;
  margin-top: 0;
}

.checkout-hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}
#captchaInput {
  border: 2px solid red;
}
#captchaInput.verified {
  border: 2px solid green;
}
@media (max-width: 768px) {
  .checkout-hero h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .checkout-grid {
    grid-template-columns: 1fr; /* single column */
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-thumb {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }
 .checkout-container{
  background-color: white;
 }
  .btn {
    width: 100%; /* full width buttons */
  }
}