﻿.TradeApplication {
  min-height: 100vh;
  background-color: #0a1628;
  padding: 0;
  margin: 0;
  position: relative;
}
.TradeApplication .member-signin-link {
  position: absolute;
  top: 24px;
  right: 40px;
  display: flex;
  align-items: center;
  z-index: 10;
}
.TradeApplication .member-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}
.TradeApplication .member-text {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.TradeApplication .member-text strong {
  font-weight: 700;
}
.TradeApplication .signin-link {
  color: #fff;
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
.TradeApplication .signin-link:hover {
  text-decoration: none;
}
.TradeApplication .trade-header {
  background-color: #0a1628;
  text-align: center;
  padding: 60px 20px 40px;
  color: #ffffff;
}
.TradeApplication .trade-header .logo-container {
  margin-bottom: 30px;
}
.TradeApplication .trade-header .logo-container .header-logo {
  max-width: 80px;
  height: auto;
  filter: brightness(0) invert(1);
}
.TradeApplication .trade-header .header-content .join-text {
  font-size: 0.875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}
.TradeApplication .trade-header .header-content .main-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
  letter-spacing: 1px;
  color: #ffffff;
}
@media (max-width: 768px) {
  .TradeApplication .trade-header .header-content .main-title {
    font-size: 2rem;
  }
}
.TradeApplication .form-wrapper {
  background-color: #0a1628;
  display: flex;
  justify-content: center;
  padding: 20px 20px 60px;
}
.TradeApplication .contact-form {
  background-color: #f5f1e8;
  border-radius: 8px;
  padding: 40px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .TradeApplication .contact-form {
    padding: 30px 20px;
  }
}
.TradeApplication .contact-form .form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #0a1628;
  text-align: left;
}
.TradeApplication .contact-form .form-group {
  margin-bottom: 20px;
}
.TradeApplication .contact-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #0a1628;
}
.TradeApplication .contact-form .form-group label .required {
  color: #dc3545;
  margin-right: 2px;
}
.TradeApplication .contact-form .form-group input[type=text],
.TradeApplication .contact-form .form-group input[type=email],
.TradeApplication .contact-form .form-group input[type=tel],
.TradeApplication .contact-form .form-group textarea,
.TradeApplication .contact-form .form-group select {
  width: 100%;
  padding: 12px 15px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #ffffff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.TradeApplication .contact-form .form-group input[type=text]:focus,
.TradeApplication .contact-form .form-group input[type=email]:focus,
.TradeApplication .contact-form .form-group input[type=tel]:focus,
.TradeApplication .contact-form .form-group textarea:focus,
.TradeApplication .contact-form .form-group select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.TradeApplication .contact-form .form-group input[type=text].HasError,
.TradeApplication .contact-form .form-group input[type=email].HasError,
.TradeApplication .contact-form .form-group input[type=tel].HasError,
.TradeApplication .contact-form .form-group textarea.HasError,
.TradeApplication .contact-form .form-group select.HasError {
  border-color: #dc3545;
}
.TradeApplication .contact-form .form-group input[type=text].HasError:focus,
.TradeApplication .contact-form .form-group input[type=email].HasError:focus,
.TradeApplication .contact-form .form-group input[type=tel].HasError:focus,
.TradeApplication .contact-form .form-group textarea.HasError:focus,
.TradeApplication .contact-form .form-group select.HasError:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
.TradeApplication .contact-form .form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}
.TradeApplication .contact-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.TradeApplication .contact-form .checkbox-group .checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.TradeApplication .contact-form .checkbox-group .checkbox-item:hover {
  background-color: rgba(10, 22, 40, 0.03);
}
.TradeApplication .contact-form .checkbox-group .checkbox-item input[type=checkbox] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.TradeApplication .contact-form .checkbox-group .checkbox-item label {
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  user-select: none;
  flex: 1;
}
.TradeApplication .contact-form .ErrorText {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
  display: block;
}
.TradeApplication .contact-form .captcha-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(10, 22, 40, 0.1);
}
.TradeApplication .contact-form .captcha-section .captcha-code {
  text-align: center;
  margin-bottom: 20px;
}
.TradeApplication .contact-form .captcha-section .captcha-code img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: auto;
}
.TradeApplication .contact-form .captcha-section .captcha-input-group {
  text-align: center;
}
.TradeApplication .contact-form .captcha-section .captcha-input-group input {
  max-width: 250px;
  margin: 0 auto;
  display: block;
}
.TradeApplication .contact-form .captcha-section .captcha-input-group .help-text {
  font-size: 0.8rem;
  color: #999;
  margin-top: 5px;
  font-style: italic;
}
.TradeApplication .contact-form .submit-btn {
  width: 100%;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #0a1628;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.TradeApplication .contact-form .submit-btn:hover:not(:disabled) {
  background-color: rgb(20.2, 44.44, 80.8);
  transform: translateY(-1px);
}
.TradeApplication .contact-form .submit-btn:active:not(:disabled) {
  transform: translateY(0);
}
.TradeApplication .contact-form .submit-btn:disabled {
  background-color: rgb(50.8, 111.76, 203.2);
  cursor: not-allowed;
  opacity: 0.6;
}
.TradeApplication .contact-form .cancel-btn {
  width: 100%;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  background-color: rgb(50.8, 111.76, 203.2);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.TradeApplication .contact-form .cancel-btn:hover:not(:disabled) {
  background-color: rgb(20.2, 44.44, 80.8);
  transform: translateY(-1px);
}
.TradeApplication .contact-form .cancel-btn:active:not(:disabled) {
  transform: translateY(0);
}

.ModalPopup {
  /* Import the same styling variables and base styles */
  /* Modal Overlay */
  /* Modal overlay base */
  /* When modal is visible, add .active class */
  /* Modal Container */
  /* Modal Header */
  /* Modal Body */
  /* Form Group */
  /* File Input Container */
  /* File Status */
  /* Modal Footer */
  /* Buttons */
  /* Close Button */
  /* Modal container */
  /* Modal content */
  /* Close button styling (optional) */
  /* Animations */
  /* Mobile Responsiveness */
}
.ModalPopup * {
  box-sizing: border-box;
}
.ModalPopup body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}
.ModalPopup .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}
.ModalPopup .modal-overlay {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.ModalPopup .modal-overlay.active {
  pointer-events: all;
  opacity: 1;
}
.ModalPopup .modal-overlay:not(.active) {
  visibility: hidden;
}
.ModalPopup .modal-overlay.active {
  visibility: visible;
}
.ModalPopup .modal-container {
  background: white;
  border-radius: 3px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid #cab387;
  animation: slideInUp 0.4s ease-out;
}
.ModalPopup .modal-header {
  padding: 30px 35px 20px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}
.ModalPopup .modal-title {
  font-size: 1.925rem;
  color: #2c2c2c;
  margin-bottom: 15px;
  font-weight: 400;
  font-family: "Georgia", serif;
  letter-spacing: -0.5px;
}
.ModalPopup .modal-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
}
.ModalPopup .modal-body {
  padding: 35px;
}
.ModalPopup .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}
.ModalPopup label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c2c2c;
  font-size: 1.075rem;
  font-family: "Arial", sans-serif;
}
.ModalPopup .required {
  color: red;
}
.ModalPopup .file-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.ModalPopup .file-input {
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  position: absolute;
  z-index: -1;
}
.ModalPopup .file-input-label {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  background: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-weight: bold;
}
.ModalPopup .file-input-label {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #d4d4d4;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 17px;
  color: #2c2c2c;
  width: 100%;
  text-align: center;
  font-family: "Arial", sans-serif;
}
.ModalPopup .file-input-label:hover {
  border-color: #cab387;
  background: #faf9f7;
}
.ModalPopup .file-input:focus + .file-input-label {
  outline: none;
  border-color: #cab387;
  box-shadow: 0 0 0 3px rgba(202, 179, 135, 0.1);
}
.ModalPopup .file-status {
  margin-top: 10px;
  font-size: 1.025rem;
  color: #666;
  font-style: italic;
  min-height: 20px;
}
.ModalPopup .file-selected {
  color: #cab387;
  font-weight: 600;
}
.ModalPopup .modal-footer {
  padding: 20px 35px 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.ModalPopup .btn {
  padding: 12px;
  border: none;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Arial", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
}
.ModalPopup .btn-primary {
  background: linear-gradient(135deg, #cab387, #cab387);
  color: white;
  white-space: normal !important;
  word-break: break-word;
  max-width: 100%;
  /* Optionally, set a specific width if you want wrapping to occur sooner */
  /* width: 220px; */
}
.ModalPopup .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(202, 179, 135, 0.3);
}
.ModalPopup .btn-primary:disabled {
  background: #d4d4d4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ModalPopup .btn-secondary {
  background: #f8f8f8;
  color: #666;
  border: 1px solid #d4d4d4;
}
.ModalPopup .btn-secondary:hover {
  background: #e8e8e8;
  border-color: #bbb;
}
.ModalPopup .btn-alt {
  background: #dc3545;
  color: #ffffff;
  border: 1px solid #d4d4d4;
}
.ModalPopup .btn-alt:hover {
  border-color: #bbb;
}
.ModalPopup .close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.ModalPopup .close-button:hover {
  background: #f0f0f0;
  color: #666;
}
.ModalPopup .freight-carrier-border {
  border-top: 4px solid #000 !important;
}
.ModalPopup .floating-comment-btn {
  background: linear-gradient(135deg, #cab387, #cab387);
  color: #2c2c2c;
  border: 2px solid #cab387;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0;
}
.ModalPopup .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position to overlay the page */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 1000; /* Ensure it appears above other elements */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  display: flex; /* Flexbox for centering */
}
.ModalPopup .modal-content {
  background-color: #fff; /* White background for the popup */
  padding: 20px; /* Add padding inside the modal */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  max-width: 500px; /* Limit the width */
  width: 90%; /* Responsive width */
  text-align: center; /* Center text inside the modal */
}
.ModalPopup .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .ModalPopup .modal-container {
    width: 95%;
    margin: 10px;
  }
  .ModalPopup .modal-header,
  .ModalPopup .modal-body,
  .ModalPopup .modal-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  .ModalPopup .modal-title {
    font-size: 1.625rem;
  }
  .ModalPopup .modal-footer {
    flex-direction: column;
  }
  .ModalPopup .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .TradeApplication .trade-header {
    padding: 40px 15px 30px;
  }
  .TradeApplication .trade-header .header-content .main-title {
    font-size: 1.75rem;
  }
  .TradeApplication .form-wrapper {
    padding: 15px 15px 40px;
  }
  .TradeApplication .contact-form {
    padding: 25px 15px;
  }
  .TradeApplication .contact-form .form-title {
    font-size: 1.3rem;
  }
  .ModalPopup .modal-overlay .modal-container {
    width: 95%;
  }
  .ModalPopup .modal-overlay .modal-container .modal-header,
  .ModalPopup .modal-overlay .modal-container .modal-footer {
    padding: 20px 15px;
  }
}
@media print {
  .TradeApplication {
    background-color: #ffffff;
  }
  .TradeApplication .trade-header {
    background-color: #ffffff;
    color: #0a1628;
  }
  .TradeApplication .contact-form {
    box-shadow: none;
  }
  .TradeApplication .submit-btn,
  .TradeApplication .captcha-section {
    display: none;
  }
}
