/* ========================================
   STUDENT FORM STYLES (matching Partner Form)
   ======================================== */

/* General container + Custom Background */
.sfg-client-form {
    max-width: 600px;
    margin: auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff !important;
  }
  
  /* === Student Form Logo === */
  .sfg-logo {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .sfg-logo img {
    width: 320px;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    margin-top: 10px;
  }
  
  /* Title */
  .sfg-client-form h2.sfg-title {
    text-align: center;
    color: #006B3C;
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: 600;
  }
  
  /* Main title */
  .sfg-main-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #006B3C;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
  }
  
  /* Student form title */
  .sfg-client-form h2.sfg-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
  }
  
  /* Form groups */
  .sfg-form .form-group {
    margin-bottom: 35px;
  }
  
  /* Labels */
  .sfg-form label,
  .sfg-client-form .checkbox-group label {
    font-weight: 700 !important;
    margin-bottom: 5px;
    color: #333;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
  }
  
  /* Inputs and textarea */
  .sfg-form input[type="text"],
  .sfg-form input[type="email"],
  .sfg-form input[type="tel"],
  .sfg-form input[type="number"],
  .sfg-form textarea,
  .sfg-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
  }
  
  /* Textarea specific spacing */
  .sfg-client-form .form-group textarea {
    margin-top: 10px;
    resize: vertical;
  }
  
  /* Checkbox spacing */
  .sfg-form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .sfg-client-form .form-group.checkbox-group {
    margin-bottom: 0px !important;
  }
  
  /* Attachment link */
  .sfg-form .form-group a,
  .sfg-client-form .attachment-link {
    color: #006B3C;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
  }
  
  .sfg-form .form-group a:hover,
  .sfg-client-form .attachment-link:hover {
    text-decoration: underline;
  }
  
  /* Flex layout for label + input/link */
  .sfg-client-form .form-group.form-flex {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .sfg-client-form .form-group.form-flex label {
    margin: 0;
    white-space: nowrap;
  }
  
  .sfg-client-form .form-group.form-flex input,
  .sfg-client-form .form-group.form-flex a {
    margin: 0;
    flex: 1;
  }
  
  /* Note text */
  .sfg-note {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 200 !important;
    font-family: 'Open Sans', sans-serif;
  }
  
  /* Submit button - ✅ FIXED PADDING */
  .sfg-submit {
    background-color: #000000 !important;
    color: #fff;
    padding: 10px 25px; /* ✅ Changed from 110px to 10px */
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700 !important;
    margin-top: 40px !important;
  }
  
  .sfg-submit:hover {
    background-color: #d97d0e;
  }
  
  /* === Signature Pad Fix === */
  .sfg-signature-pad {
    width: 100%;
    height: 180px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #dddddd !important;
    touch-action: none;
    display: block;
    margin-top: 6px;
  }
  
  #clear-signature-student,
  .sfg-clear-signature {
    margin-top: 8px;
    background: #000000 !important;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }
  
  #clear-signature-student:hover,
  .sfg-clear-signature:hover {
    background: #d97d0e;
  }
  
  /* On smaller devices - Mobile View Signature Color */
  @media (max-width: 600px) {
    .sfg-signature-pad {
      width: 100% !important;
      height: 220px !important;
      display: block !important;
      background: #dddddd !important;
      border: 2px solid #ccc !important;
      border-radius: 8px !important;
      touch-action: none !important;
    }
  }
  
  /* === Services Description (Message Box) === */
  .sfg-message-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 8px;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
  }
  
  /* Line breaks in message box */
  .sfg-message-box br {
    display: block;
    margin: 0;
    content: "";
  }
  
  /* Terms box - Fixed for line breaks */
  .sfg-terms-box {
    background: #dddddd;
    border: 1px solid #9ca2a7;
    border-radius: 8px;
    margin-top: 4px !important;
    padding: 2px 03px 2px 5px !important;
    font-size: 14px;
    color: #333;
    line-height: 1.6 !important;
  }
  
  .sfg-terms-box p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    white-space: pre-wrap;
  }
  
  /* Course Checkbox Options */
  .sfg-course-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }
  
  .sfg-course-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .sfg-course-option:hover {
    border-color: #f29726;
    background: #fff9f0;
  }
  
  .sfg-course-option.selected {
    border-color: #f29726;
    background: #fff4e6;
  }
  
  .sfg-course-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #f29726;
  }
  
  .sfg-course-option label {
    cursor: pointer;
    flex: 1;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
  }
  
  /* Orange tick effect */
  .sfg-course-option input[type="checkbox"]:checked {
    background-color: #f29726;
    border-color: #f29726;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    .sfg-client-form {
      padding: 20px 15px;
    }
    
    .sfg-logo img {
      width: 280px;
    }
    
    .sfg-main-title {
      font-size: 28px;
    }
    
    .sfg-form label,
    .sfg-client-form .checkbox-group label {
      font-size: 16px;
    }
  }
