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

body {
   font-family: poppins;
   /*background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);*/
   min-height: 100vh;
   /* padding: 15px 15px; */
}

.container {
   max-width: 800px;
   margin: 0 auto;
}

.header {
   text-align: center;
   color: black;
   margin-bottom: 15px;
}

   .header h1 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 5px;
   }

   .header p {
      font-size: 14px;
      opacity: 0.95;
   }

.progress-bar {
   background: #0c2340;
   height: 4px;
   border-radius: 2px;
   margin: 10px 0 15px 0;
   overflow: hidden;
}

.progress-fill {
   height: 100%;
   background: rgba(232, 119, 34, 1.0);
   width: 33%;
   transition: width 0.3s ease;
}

.card {
   background: white;
   border-radius: 12px;
   padding: 20px;
   margin-bottom: 12px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
   border-left: 3px solid transparent;
   transition: all 0.3s ease;
}

   .card:hover {
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
      transform: translateY(-2px);
   }

   .card.active {
      border-left-color: #F47E3C;
   }

.card-header {
   display: flex;
   align-items: center;
   margin-bottom: 15px;
   background-color: white;
   padding: 0;
   border-bottom: 0;
}


.card-icon {
   display: block;
}

.card-title {
   font-size: 18px;
   font-weight: 700;
   color: #1a202c;
}

.step-number {
   display: none;
}

form {
   background-color: #0c2340 !important;
}

.ibox-title {
   border-radius: 12px 12px 0px 0px;
}

.ibox-content {
   border-radius: 0px 0px 12px 12px;
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
   margin-bottom: 5px;
   margin-left: 0;
   margin-right: inherit;
}

.form-group {
   position: relative;
   margin-bottom: 12px;
}

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

.form-input {
   width: 100%;
   padding: 12px;
   border: 2px solid #e2e8f0;
   border-radius: 8px;
   font-size: 14px;
   transition: all 0.3s ease;
   background: #f7fafc;
}

   .form-input:focus {
      outline: none;
      border-color: #F47E3C;
      background: white;
      box-shadow: 0 0 0 3px rgba(244, 126, 60, 0.1);
   }

   .form-input.valid {
      border-color: #48bb78;
      background: #f0fff4;
   }

   .form-input.error {
      border-color: #f56565;
      background: #fff5f5;
   }

.input-icon {
   display: none;
}

.floating-label {
   position: absolute;
   left: 12px;
   top: 14px;
   color: #a0aec0;
   font-size: 14px;
   pointer-events: none;
   transition: all 0.3s ease;
   background: transparent;
   padding: 0 4px;
   line-height: 1.2;
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label,
.form-input.error ~ .floating-label,
.form-input.valid ~ .floating-label {
   top: -10px;
   font-size: 12px;
   color: #F47E3C;
   background: white;
   font-weight: 600;
}

.validation-icon {
   position: absolute;
   right: 15px;
   top: 12px;
   font-size: 18px;
   display: none;
   pointer-events: none;
   line-height: 1;
}

.form-input.valid ~ .validation-icon.check {
   display: block;
   color: #48bb78;
}

.form-input.error ~ .validation-icon.cross {
   display: block;
   color: #f56565;
}

.error-message {
   color: #f56565;
   font-size: 12px;
   margin-top: 4px;
   margin-left: 0px;
   display: none;
}

.form-input.error ~ .error-message {
   display: block;
}

.helper-text {
   color: #718096;
   font-size: 11px;
   margin-top: 4px;
   margin-left: 0px;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.section-title {
   font-size: 14px;
   font-weight: 600;
   color: #2d3748;
   margin-bottom: 12px;
   display: flex;
   align-items: center;
}

   .section-title::before {
      content: '';
      width: 3px;
      height: 16px;
      background: #F47E3C;
      margin-right: 8px;
      border-radius: 2px;
   }

.button-group {
   display: flex;
   gap: 8px;
   justify-content: flex-end;
   margin-top: 15px;
}

.btn {
   padding: 10px 20px;
   border: none;
   border-radius: 8px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   display: inline-flex;
   align-items: center;
   gap: 6px;
}

.btn-primary {
   background: #F47E3C;
   color: white;
   box-shadow: 0 4px 12px rgba(244, 126, 60, 0.4);
}

   .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(244, 126, 60, 0.5);
      background: #e66d2b;
   }

   .btn-primary:active {
      transform: translateY(0);
   }

.btn-secondary {
   background: white;
   color: #2C3E50;
   border: 2px solid #2C3E50;
}

   .btn-secondary:hover {
      background: #2C3E50;
      color: white;
   }

/* Success Message */
.success-message {
   display: none;
   text-align: center;
   padding: 40px;
   animation: fadeIn 0.5s ease;
   min-height: 60vh;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}

   .success-message.show {
      display: flex;
   }

.success-icon {
   width: 80px;
   height: 80px;
   background: #28a745;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 48px;
   color: white;
   margin: 0 auto 20px;
   animation: scaleIn 0.5s ease;
}

.success-message h2 {
   color: #28a745;
   font-size: 28px;
   margin-bottom: 10px;
}

.success-message p {
   color: #666;
   font-size: 16px;
}

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

   to {
      transform: scale(1);
   }
}

/* Alert Container */
.alert-container {
   margin-bottom: 20px;
   animation: slideDown 0.3s ease;
}

.alert {
   padding: 15px 20px;
   border-radius: 8px;
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 14px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-error {
   background: #fee;
   border-left: 4px solid #dc3545;
   color: #721c24;
}

.alert-success {
   background: #d4edda;
   border-left: 4px solid #28a745;
   color: #155724;
}

.alert-warning {
   background: #fff3cd;
   border-left: 4px solid #ffc107;
   color: #856404;
}

.alert-icon {
   font-size: 20px;
   font-weight: bold;
   flex-shrink: 0;
}

.alert-text {
   flex: 1;
}

.alert-close {
   background: none;
   border: none;
   font-size: 24px;
   cursor: pointer;
   color: inherit;
   opacity: 0.6;
   padding: 0;
   width: 24px;
   height: 24px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

   .alert-close:hover {
      opacity: 1;
   }

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.btn-text {
   background: transparent;
   color: #718096;
   padding: 14px 20px;
}

   .btn-text:hover {
      color: #2d3748;
      background: #f7fafc;
   }

.success-animation {
   display: none;
   text-align: center;
   padding: 60px 40px;
}

   .success-animation.show {
      display: block;
      animation: fadeIn 0.5s ease;
   }

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: scale(0.9);
   }

   to {
      opacity: 1;
      transform: scale(1);
   }
}

.success-icon {
   width: 80px;
   height: 80px;
   background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
   border-radius: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-size: 40px;
   margin-bottom: 24px;
   animation: bounce 0.6s ease;
}

@keyframes bounce {
   0%, 100% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.1);
   }
}

.success-title {
   font-size: 28px;
   font-weight: 700;
   color: #1a202c;
   margin-bottom: 12px;
}

.success-message {
   font-size: 16px;
   color: #718096;
   margin-bottom: 32px;
}

.info-badge {
   display: inline-block;
   background: rgba(244, 126, 60, 0.1);
   color: #F47E3C;
   padding: 6px 12px;
   border-radius: 15px;
   font-size: 12px;
   font-weight: 600;
   margin-bottom: 10px;
   border: 1px solid rgba(244, 126, 60, 0.3);
}

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

   .card {
      padding: 16px;
   }

   .header h1 {
      font-size: 20px;
   }

   .button-group {
      flex-direction: column-reverse;
   }

   .btn {
      width: 100%;
      justify-content: center;
   }
}

/* Logo */
.referral-logo {
    padding: 20px 30px;
}

.referral-logo img {
    height: 40px;
    width: auto;
}

/* Remember me checkbox */
.remember-me-row {
   margin-top: 12px;
}

.remember-me-label {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   color: #2d3748;
   cursor: pointer;
   user-select: none;
}

   .remember-me-label input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: #F47E3C;
      cursor: pointer;
      display: inline-block;
   }

/* Custom checkbox/radio styling */
input[type="radio"] {
   display: none;
}

.tooltip {
   position: relative;
   display: inline-block;
   margin-left: 8px;
   cursor: help;
}

.tooltip-icon {
   width: 20px;
   height: 20px;
   background: #e2e8f0;
   border-radius: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 12px;
   color: #718096;
}

.tooltip-text {
   visibility: hidden;
   width: 250px;
   background-color: #2d3748;
   color: white;
   text-align: left;
   border-radius: 8px;
   padding: 12px;
   position: absolute;
   z-index: 1;
   bottom: 125%;
   left: 50%;
   margin-left: -125px;
   opacity: 0;
   transition: opacity 0.3s;
   font-size: 13px;
   line-height: 1.5;
}

.tooltip:hover .tooltip-text {
   visibility: visible;
   opacity: 1;
}

/* Preview Modal Styles */
.preview-modal {
   display: none;
   position: fixed;
   z-index: 10000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.6);
   animation: fadeIn 0.3s;
}

   .preview-modal.show {
      display: block;
   }

.preview-modal-content {
   background-color: #fff;
   margin: 10% auto;
   padding: 0;
   border-radius: 8px;
   width: 100%;
   max-width: 600px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
   animation: slideDown 0.3s;
   overflow: hidden;
}

.preview-modal-header {
   padding: 10px 15px;
   /*border-bottom: 1px solid #e2e8f0;*/
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: linear-gradient(135deg, #0c2340 0%, #1a3a5c 100%);
   border-radius: 4px 4px 0 0;
}

   .preview-modal-header h2 {
      margin: 0;
      font-size: 16px;
      font-weight: 600;
      color: #fff;
   }

.preview-close-btn {
   color: #fff;
   font-size: 28px;
   font-weight: bold;
   background: none;
   border: none;
   cursor: pointer;
   padding: 0;
   width: 28px;
   height: 28px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 4px;
   transition: background-color 0.2s;
}

   .preview-close-btn:hover {
      background-color: rgba(255, 255, 255, 0.1);
   }

.preview-modal-body {
   padding: 15px;
   max-height: 80vh;
   overflow-y: auto;
}

.preview-subject {
   padding: 10px;
   background-color: #f7fafc;
   border-left: 4px solid #e87722;
   margin-bottom: 12px;
   border-radius: 4px;
   font-size: 14px;
}

   .preview-subject strong {
      color: #2d3748;
      font-weight: 600;
   }

.preview-content {
   padding: 12px;
   border: 1px solid #e2e8f0;
   border-radius: 4px;
   background-color: #fff;
   min-height: 120px;
   line-height: 1.5;
   color: #2d3748;
   font-size: 13px;
}

   .preview-content a {
      color: #3182ce;
      text-decoration: underline;
      cursor: pointer;
   }

      .preview-content a:hover {
         color: #2c5282;
         text-decoration: none;
      }

@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes slideDown {
   from {
      transform: translateY(-50px);
      opacity: 0;
   }

   to {
      transform: translateY(0);
      opacity: 1;
   }
}
