.rental-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .rental-container { grid-template-columns: 1fr; }
}

/* ── Equipment Details Panel ── */
.rd-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.rd-image {
  width: 100%;
  height: 400px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.rd-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  display: block;
}
.rd-image i { font-size: 80px; color: #ccc; }

.rd-info { margin-bottom: 20px; }
.rd-info h2 { margin: 0 0 10px; color: #333; }
.rd-info p { color: #666; line-height: 1.6; margin: 5px 0; }

.rd-pricing-box {
  background: linear-gradient(135deg, #2F4F4A 0%, #1a3330 100%);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.rd-pricing-option { 
  padding: 10px; 
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.rd-pricing-option:hover { 
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.rd-pricing-option.selected {
  background: rgba(255,255,255,0.2);
  border-color: #B7E35A;
  box-shadow: 0 0 10px rgba(183, 227, 90, 0.3);
}
.rd-pricing-label { font-size: 12px; opacity: 0.85; margin-bottom: 5px; }
.rd-pricing-price { font-size: 18px; font-weight: bold; }

.rd-pricing-section {
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* ── Rental Form Panel ── */
.rd-form-wrap {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rd-alert {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
}
.rd-alert-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
}

.rd-step {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.rd-step:last-of-type { border-bottom: none; }

.rd-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.rd-step-number {
  background: #B7E35A;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}
.rd-step-label { font-weight: 600; color: #333; }

.rd-form-group { margin-bottom: 15px; }
.rd-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}
.rd-form-group input[type="text"],
.rd-form-group input[type="number"],
.rd-form-group input[type="date"],
.rd-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
  background-color: #fff;
}
.rd-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 32px;
}
.rd-form-group input:focus,
.rd-form-group select:focus {
  outline: none;
  border-color: #B7E35A;
  box-shadow: 0 0 0 3px rgba(183, 227, 90, 0.15);
}

.rd-field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
}

.rd-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rd-input-row input { flex: 1; }
.rd-input-suffix { font-size: 14px; color: #666; white-space: nowrap; }

.rd-qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-qty-control button {
  width: 35px;
  height: 35px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}
.rd-qty-control button:hover { background: #e0e0e0; }
.rd-qty-control input { width: 60px; text-align: center; }

.rd-summary {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  margin-top: 10px;
}
.rd-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}
.rd-summary-total {
  border-top: 2px solid #ddd;
  padding-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #2F4F4A;
  margin-bottom: 0;
}

.rd-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #B7E35A, #a8d852);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rd-submit-btn:hover {
  background: linear-gradient(135deg, #2F4F4A, #1a3330);
  transform: translateY(-2px);
}

.rd-call-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  margin-top: 12px;
  background: #1e3a35;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}
.rd-call-btn:hover {
  background: #2f5b4f;
  transform: translateY(-2px);
}

.rd-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .rental-container {
    gap: 20px;
    padding: 15px;
  }

  .rd-details {
    padding: 15px;
  }

  .rd-image {
    height: 350px;
  }

  .rd-pricing-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
  }

  .rd-pricing-label {
    font-size: 11px;
  }

  .rd-pricing-price {
    font-size: 16px;
  }

  .rd-form-wrap {
    padding: 15px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .rental-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px auto;
    padding: 12px;
  }

  .rd-details {
    padding: 12px;
    background: #fff;
  }

  .rd-image {
    height: 300px;
    margin-bottom: 15px;
  }

  .rd-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .rd-info {
    margin-bottom: 15px;
  }

  .rd-info h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .rd-info p {
    font-size: 13px;
    margin: 4px 0;
  }

  .rd-pricing-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
  }

  .rd-pricing-option {
    padding: 8px;
  }

  .rd-pricing-label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .rd-pricing-price {
    font-size: 14px;
  }

  .rd-form-wrap {
    padding: 12px;
  }

  .rd-step {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .rd-step-header {
    margin-bottom: 12px;
  }

  .rd-step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .rd-step-label {
    font-size: 14px;
  }

  .rd-form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .rd-form-group input[type="text"],
  .rd-form-group input[type="number"],
  .rd-form-group input[type="date"],
  .rd-form-group select {
    padding: 8px;
    font-size: 13px;
  }

  .rd-qty-control button {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .rd-qty-control input {
    width: 50px;
  }

  .rd-input-suffix {
    font-size: 13px;
  }

  .rd-summary {
    padding: 12px;
    margin-top: 8px;
  }

  .rd-summary-row {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .rd-summary-total {
    font-size: 15px;
    padding-top: 8px;
  }

  .rd-submit-btn {
    padding: 12px;
    font-size: 14px;
    margin-top: 15px;
  }

  .rd-alert {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .rental-container {
    margin: 15px auto;
    padding: 10px;
  }

  .rd-details {
    padding: 10px;
  }

  .rd-image {
    height: 250px;
    margin-bottom: 12px;
  }

  .rd-info h2 {
    font-size: 18px;
  }

  .rd-info p {
    font-size: 12px;
  }

  .rd-pricing-box {
    padding: 10px;
    gap: 4px;
  }

  .rd-pricing-label {
    font-size: 9px;
  }

  .rd-pricing-price {
    font-size: 13px;
  }

  .rd-form-wrap {
    padding: 10px;
  }

  .rd-form-group label {
    font-size: 12px;
  }

  .rd-form-group input[type="text"],
  .rd-form-group input[type="number"],
  .rd-form-group input[type="date"],
  .rd-form-group select {
    padding: 7px;
    font-size: 12px;
  }

  .rd-qty-control button {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .rd-qty-control input {
    width: 45px;
    font-size: 12px;
  }

  .rd-input-row input {
    font-size: 12px;
  }

  .rd-submit-btn {
    padding: 10px;
    font-size: 13px;
    margin-top: 12px;
  }

  .rd-step-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}
