/* Fly4free Modal Account Widget Styles */

.fly4free-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.fly4free-modal-container {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.fly4free-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.fly4free-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #002039;
}

.fly4free-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fly4free-modal-close:hover {
  color: #000;
}

.fly4free-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  position: relative;
}

.fly4free-modal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

/* Login Container */
.fly4free-login-container {
  width: 100%;
}

.fly4free-login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.fly4free-tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.fly4free-tab-btn:hover {
  color: #002039;
}

.fly4free-tab-btn.active {
  color: #002039;
  border-bottom-color: #ef3e4a;
  font-weight: 500;
}

.fly4free-tab-content {
  display: none;
}

.fly4free-tab-content.active {
  display: block;
}

/* Forms */
.fly4free-form {
  width: 100%;
}

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

.fly4free-form-group:last-child {
  margin-bottom: 0;
}

.fly4free-form-group label {
  display: flex;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.fly4free-form-group input[type="text"],
.fly4free-form-group input[type="email"],
.fly4free-form-group input[type="tel"],
.fly4free-form-group input[type="password"],
.fly4free-form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.fly4free-form-group input[type="checkbox"] {
  margin-right: 8px;
}

/* Toggle Switch */
.fly4free-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  vertical-align: middle;
  flex-shrink: 0;
}

.fly4free-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.fly4free-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f8f9fa;
  transition: 0.3s;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fly4free-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #999;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fly4free-toggle input:checked + .fly4free-toggle-slider:before {
  background-color: #ef3e4a;
  transform: translateX(22px);
}

.fly4free-toggle input:focus + .fly4free-toggle-slider {
  box-shadow: 0 0 1px #17588a;
}

.fly4free-toggle input:disabled + .fly4free-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Link Button */
.fly4free-btn-link {
  background: none;
  border: none;
  color: #17588a;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.fly4free-btn-link:hover {
  color: #0d3d5c;
}

.fly4free-toggle-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.fly4free-toggle-label .fly4free-toggle {
  flex-shrink: 0;
  margin-right: 0;
}

.fly4free-toggle-label span:not(.fly4free-toggle) {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  flex: 1;
  min-width: 0;
}

/* Form group text styles */
.fly4free-form-group .mb-2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  margin-bottom: 16px;
}

.fly4free-form-group .mb-2.font-weight-bold {
  font-weight: 500;
}

.fly4free-form-group .text-muted {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  margin-top: 8px;
  display: block;
}

.fly4free-form-group input:focus {
  outline: none;
  border-color: #17588a;
  box-shadow: 0 0 0 2px rgba(23, 88, 138, 0.1);
}

.fly4free-form-group input.is-invalid {
  border-color: #dc3545;
}

.fly4free-form-group input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

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

.fly4free-avatar-preview {
  display: block;
  margin-top: 10px;
  max-width: 120px;
  border-radius: 8px;
}

/* Buttons */
.fly4free-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.fly4free-btn-primary {
  background-color: #ef3e4a;
  color: #fff;
  width: 100%;
}

.fly4free-btn-primary:hover {
  background-color: #d62d20;
}

.fly4free-btn-danger {
  background-color: #dc3545;
  color: #fff;
  width: 100%;
  margin-top: 10px;
}

.fly4free-btn-danger:hover {
  background-color: #c82333;
}

/* Social Separator */
.fly4free-social-separator {
  border-top: 1px solid #c1c1c1;
  margin: 36px 0 20px;
  text-align: center;
  position: relative;
}

.fly4free-social-separator span {
  background: #fff;
  color: #8e8d8d;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
  position: relative;
  top: -13px;
  text-transform: uppercase;
}

/* Social Buttons */
.fly4free-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fly4free-btn-social {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fly4free-btn-social:hover {
  opacity: 0.8;
}

.fly4free-btn-forum {
  grid-column: span 2;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.fly4free-btn-facebook {
  background-color: #3b5998;
}

.fly4free-btn-google {
  background-color: #d62d20;
}

.fly4free-btn-twitter {
  background-color: #55acee;
}

.fly4free-btn-apple {
  background-color: #000;
}

/* Account Container */
.fly4free-account-container {
  width: 100%;
}

.fly4free-account-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.fly4free-account-header .fly4free-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.fly4free-account-header h4 {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  color: #002039;
}

.fly4free-account-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.fly4free-account-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.fly4free-account-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fly4free-full-panel-link {
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #17588a;
  text-decoration: none;
  transition: color 0.2s;
}

.fly4free-full-panel-link:hover {
  color: #ef3e4a;
  text-decoration: underline;
}

/* Messages */
.fly4free-success-message,
.fly4free-error-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  margin-top: 10px;
}

.fly4free-success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.fly4free-error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Subscription Tags */
.fly4free-subscription-tag {
  display: inline-block;
  background: #eee;
  color: #000;
  padding: 7px 12px;
  border-radius: 15px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 14px;
}

.fly4free-subscription-tag:hover {
  background: rgba(219, 18, 32, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .fly4free-modal-overlay {
    padding: 10px;
  }

  .fly4free-modal-container {
    max-height: 95vh;
  }

  .fly4free-modal-header {
    padding: 15px;
  }

  .fly4free-modal-body {
    padding: 15px;
  }

  .fly4free-social-buttons {
    grid-template-columns: 1fr;
  }

  .fly4free-btn-forum {
    grid-column: span 1;
  }

  .fly4free-account-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Verification Container */
.fly4free-verification-container {
  width: 100%;
  text-align: center;
  padding: 0;
}

.fly4free-verification-icon {
  font-size: 64px;
  margin-bottom: 20px;
  line-height: 1;
}

.fly4free-verification-container h3 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: #002039;
  font-weight: 600;
}

.fly4free-verification-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.fly4free-verification-text strong {
  color: #002039;
}

.fly4free-verification-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.fly4free-verification-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
