/* Form Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
}

.form-container {
  max-width: 1000px;
  margin: 0 auto;
  /* background: white; */
  /* box-shadow: 0 0 20px rgba(0,0,0,0.1); */
  background: transparent; 
  box-shadow: none; 
}

/* Header */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  border-bottom: 3px solid #e74c3c;
}

.header-left h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
}

.header-left h2 {
  font-size: 2.2rem;
  color: #333;
}

.header-left .highlight {
  color: #e74c3c;
}

.header-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Course Intro Video */

.course-intro-video {
  width: 100%;
  padding: 20px 30px;
  background: #000;
}

.course-intro-video iframe {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  border: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .course-intro-video {
    padding: 15px;
  }

  .course-intro-video iframe {
    height: 220px;
  }
}

.form-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.header-right h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 5px;
}

.header-right .tagline {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.header-right p {
  font-size: 0.9rem;
  color: #555;
  margin: 3px 0;
}

/* Form Sections */
.form-section {
  padding: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.section-header {
  background-color: #c0c0c0;
  color: white;
  padding: 12px 20px;
  margin: -30px -30px 25px -30px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.section-a {
  background-color: #e74c3c;
}

.section-b {
  background-color: #c0c0c0;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Date of Birth – single date picker (calendar) */
.date-inputs {
  display: flex;
  gap: 10px;
}

.date-inputs input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.date-inputs input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

/* Radio Groups */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  cursor: pointer;
}

/* Error Messages */
.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 18px;
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e74c3c;
}

/* Terms & Conditions */
.form-actions-terms {
  padding: 0 30px 10px;
  margin-bottom: 0;
}
.form-actions-terms .terms-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: normal;
  font-size: 1.125rem;
  line-height: 1.5;
  cursor: pointer;
}
.form-actions-terms .terms-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.form-actions-terms .terms-link {
  color: #3498db;
  text-decoration: underline;
}
.form-actions-terms .terms-link:hover {
  color: #2980b9;
}
.form-actions-terms.has-error .terms-label {
  color: #e74c3c;
}
.form-section:last-of-type {
  border-bottom: none;
}

/* reCAPTCHA v2 widget above Submit button */
.recaptcha-wrap {
  padding: 10px 30px 20px;
}
.recaptcha-container {
  min-height: 78px;
}
.recaptcha-wrap .error-message.hidden {
  display: none;
}

/* Form Actions */
.form-actions {
  padding: 30px;
  text-align: center;
}

.submit-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.submit-button:hover:not(:disabled) {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

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

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.modal-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-button:hover {
  background-color: #2980b9;
}

.modal.success .modal-content {
  border-top: 5px solid #27ae60;
}

.modal.error .modal-content {
  border-top: 5px solid #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .form-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .header-right {
    text-align: center;
    align-items: center;
  }
  
  .form-logo {
    height: 50px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-section {
    padding: 20px;
  }
  
  .section-header {
    margin: -20px -20px 20px -20px;
  }
  
  .date-inputs {
    flex-direction: column;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

/* Form Footer */
.form-footer {
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
}

.developer-badge {
  background: #ff6600;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

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

.success-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.4s ease;
}

.success-icon {
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease 0.2s both;
}

.success-modal-content h2 {
  color: #b45309;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

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

.payment-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
}

.payment-section h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.payment-info {
  color: #666;
  margin-bottom: 20px;
}

.qr-code-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.qr-code {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
}

.payment-details {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.payment-details p {
  margin: 10px 0;
  color: #333;
  font-size: 1rem;
}

.payment-note {
  margin-top: 20px;
  color: #666;
  font-size: 0.95rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c4c 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-link i {
  font-size: 1.3rem;
}

.success-modal-button {
  background: #333;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.success-modal-button:hover {
  background: #555;
  transform: translateY(-2px);
}

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

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

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

@media (max-width: 640px) {
  .success-modal-content {
    padding: 25px;
  }
  
  .success-modal-content h2 {
    font-size: 1.4rem;
  }
  
  .qr-code {
    max-width: 200px;
  }
  
  .payment-section {
    padding: 20px;
  }
}


/* Razorpay Payment Button */
.pay-now-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  margin: 20px 0;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

@media (max-width: 768px) {

  .pay-now-button {
    padding: 14px 5px;
  }
  
}

.pay-now-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.pay-now-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pay-now-button i {
  font-size: 1.2rem;
}

.pay-part-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  width: 100%;
}

.pay-part-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.pay-part-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pay-part-button i {
  font-size: 1.2rem;
}

.pay-cod-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #b45309;
  border: 2px solid #d97706;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pay-cod-button:hover:not(:disabled) {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.pay-cod-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pay-cod-button i {
  font-size: 1.2rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.payment-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.payment-divider span {
  padding: 0 15px;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
}
/* form */

.application-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  /* gap: 48px; */
  align-items: flex-start;
}

/* LEFT */
.application-left {
  /* background: #fff; */
  background: #ffffff;
  border-radius: 16px;

  /* STRONG LIFTED SHADOW */
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.08);

  position: relative;
  z-index: 10;
}

/* RIGHT */
.application-right {
  background: transparent;
}

.order-card {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  /* border-radius: 14px; */
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.order-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.order-logo .ol-right h2{
  font-size: 25px;
  color: #ffbc1d;
  font-weight: bold;
}

.order-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}

/* ORDER CARD COURSE INFO ALIGNMENT */
#orderCourseInfo .order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#orderCourseName {
  font-weight: 600;
  font-size: 15px;
}

#orderCourseDuration {
  font-size: 13px;
  color: #6b7280;
}

.order-row.total {
  font-weight: 700;
}

/* MOBILE */
@media (max-width: 992px) {
  .application-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== LEGGARI ORDER CARD STYLE ===== */

.epoxy-style {
  background: #ffffff;
  /* border-radius: 18px; */
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.order-logo {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.order-logo img {
  /* max-width: 260px; */
  height: 58px;
  width: 100px;
  object-fit: cover;
}


.order-section-block {
  margin-bottom: 12px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.order-amount {
  font-weight: 600;
  font-size: 15px;
}

.order-subtext {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.muted {
  color: #9ca3af;
}

.order-line.total {
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
}

.order-testimonials {
  margin-top: 28px;
}

.testimonial {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonial img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.testimonial p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.testimonial strong {
  display: block;
  margin-top: 6px;
  color: #000;
  font-weight: 600;
}

.order-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 13px;
}

.order-footer-links a {
  color: #2563eb;
  text-decoration: none;
}

/* ===== PAYMENT OPTIONS ===== */

.payment-options-section {
  margin-bottom: 40px;
}

.payment-title {
  /* font-size: 20px; */
  /* font-weight: 700; */
  /* margin-bottom: 6px; */
  background-color: #c0c0c0;
  color: white;
  padding: 12px 20px;
  /* margin: -30px -30px 25px -30px; */
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.payment-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 20px 30px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 30px;
}

.payment-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.payment-card input {
  display: none;
}

.payment-card:hover {
  background: #eef2f7;
}

.payment-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-name {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.payment-price {
  font-size: 14px;
  color: #6b7280;
}

/* SELECTED STATE */
.payment-card input:checked + .payment-content,
.payment-card.selected {
  border-color: #ef4444;
  background: #fff;
}

.payment-card input:checked ~ .checkmark {
  opacity: 1;
}

.checkmark {
  position: absolute;
  right: 16px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

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

#sessionId {
  width: 100%;
  max-width: 350px;
  padding: 10px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
