/* Payment Page Styles */

.payment-section {
  min-height: 100vh;
  background: #667eea;
  padding: 100px 20px 50px;
}

.payment-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

/* Booking Summary */
.booking-summary {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
}

.booking-summary h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-content {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.summary-label {
  color: #666;
  font-weight: 500;
}

.summary-value {
  color: #333;
  font-weight: 600;
}

.summary-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #667eea;
}

.summary-total .summary-label {
  font-size: 1.2rem;
  color: #333;
}

.summary-total .summary-value {
  font-size: 1.5rem;
  color: #667eea;
}

.booking-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.booking-details h4 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.booking-details p {
  margin: 5px 0;
  color: #666;
}

/* Payment Form */
.payment-form-container {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.payment-form-container h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.payment-method input[type="radio"] {
  display: none;
}

.payment-method i {
  font-size: 2rem;
  color: #666;
  margin-bottom: 10px;
}

.payment-method span {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.payment-method:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.payment-method.active {
  border-color: #667eea;
  background: #f0f4ff;
}

.payment-method.active i,
.payment-method.active span {
  color: #667eea;
}

/* Payment Details Forms */
.payment-details {
  display: none;
}

.payment-details.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.card-input {
  position: relative;
}

.card-input input {
  padding-right: 100px;
}

.card-icons {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.card-icons i {
  font-size: 1.8rem;
  color: #ccc;
}

/* Billing Address */
.billing-address {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.billing-address h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

/* Terms Checkbox */
.terms {
  margin: 25px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  color: #666;
  font-size: 0.9rem;
}

.checkbox-label a {
  color: #667eea;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Submit Button */
.btn-pay {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.secure-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secure-text i {
  color: #48bb78;
}

/* Info Text */
.info-text {
  background: #e6f7ff;
  padding: 15px;
  border-radius: 8px;
  color: #0c5393;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Error Message */
.error-message {
  background: #fee;
  color: #c00;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #c00;
}

/* Success Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.success-modal {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  max-width: 500px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 100px;
  height: 100px;
  background: #48bb78;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.success-icon i {
  font-size: 3rem;
  color: white;
}

.success-modal h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 2rem;
}

.success-modal p {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Responsive */
@media (max-width: 968px) {
  .payment-container {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: relative;
    top: 0;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .payment-section {
    padding: 80px 15px 30px;
  }

  .payment-form-container {
    padding: 25px;
  }

  .success-modal {
    padding: 30px;
    margin: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    width: 100%;
  }
}

/* payment modal */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.payment-modal-header {
  background: #0071c2;
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.payment-modal-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.payment-modal-body {
  padding: 30px;
}

.payment-booking-summary {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #667eea;
}

.payment-booking-summary h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2d3748;
}

.payment-methods-section {
  margin-bottom: 25px;
}

.payment-methods-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2d3748;
}

.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.payment-method-tab {
  padding: 15px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.payment-method-tab i {
  font-size: 24px;
  color: #667eea;
}

.payment-method-tab:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.payment-method-tab.active {
  border-color: #667eea;
  background: #0071c2;
  color: white;
}

.payment-method-tab.active i {
  color: white;
}

.payment-method-form {
  display: none;
}

.payment-method-form.active {
  display: block;
}

.payment-form .form-group {
  margin-bottom: 20px;
}

.payment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
  font-size: 14px;
}

.payment-form input,
.payment-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  font-family: inherit;
}

.payment-form input:focus,
.payment-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.card-input-wrapper {
  position: relative;
}

.card-input-wrapper .card-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.paypal-info {
  text-align: center;
  padding: 40px 20px;
  background: #f7fafc;
  border-radius: 8px;
}

.paypal-info p {
  margin-top: 15px;
  color: #4a5568;
}

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 18px;
  font-weight: 600;
}

.payment-total .amount {
  color: #667eea;
  font-size: 24px;
}

.btn-pay-submit {
  width: 100%;
  padding: 16px;
  background:#0071c2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-pay-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-pay-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-modal-content {
  background: white;
  border-radius: 12px;
  padding: 50px;
  text-align: center;
  max-width: 400px;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  font-size: 80px;
  color: #48bb78;
  margin-bottom: 20px;
}

.btn-success-close {
  padding: 12px 40px;
  background: #0071c2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive for Modal */
@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .payment-modal-body {
    padding: 20px;
  }

  .payment-method-tabs {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
