/* ==========================================================================
   CONTACT-DESKTOP.CSS
   Theme: Portal, Forms, High-End Interaction
   ========================================================================== */

.contact-hero {
  /* Logo background + Dark Overlay */
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)), url(/assets/logo_transparent_edited.png);
  
  /* User Preference: 40rem max width for logo */
  background-size: cover, 40rem; 
  background-position: top;
  background-repeat: repeat-x; /* As requested */
  background-attachment: fixed;
  padding-top: 25rem;
}

.contact-us {
  font-size: 3rem;
  color: var(--signature-orange);
  font-family: var(--ff-headers);
  margin-bottom: 2rem;
}

.intro {
  color: var(--fc-muted);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* --- PARTNERSHIP PORTAL SECTION --- */
.partnership-portal {
  padding: 2rem 2rem;
  background-color: #1a1a1a; 
  background-image: radial-gradient(circle at center, #252525 0%, #111111 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* The White Card */
.portal-card.portal-light {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.4); 
  max-width: 75rem;
  margin: 0 auto;
  border: 1px solid #333;
  
  opacity: 0; 
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.portal-heading {
  color: #000;
  font-family: var(--ff-headers); 
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

/* --- Form Inputs --- */
.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  color: #333;
  font-family: var(--ff-main);
  font-size: 1.6rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  outline: none;
  border-color: var(--signature-orange);
  background: #fff;
  box-shadow: 0 0 1.5rem rgba(248, 194, 93, 0.25);
  transform: translateY(-1px);
}

.form-row {
  display: flex;
  gap: 2rem;
}

/* --- Character Counter --- */
.textarea-container {
  position: relative; 
  margin-bottom: 2.5rem; 
}

.textarea-container textarea {
  margin-bottom: 0.5rem; 
}

.char-counter {
  font-family: var(--ff-main);
  font-size: 1.2rem;
  color: #999;
  text-align: right;
  transition: color 0.3s ease;
}

.char-counter.warning {
  color: var(--signature-orange);
  font-weight: bold;
}

.char-counter.limit-reached {
  color: #ff4d4d;
  font-weight: 800;
}

/* --- Captcha Row --- */
.captcha-row {
  display: flex;
  align-items: center; 
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.2rem 2rem;
  background: #f4f4f4;
  border-radius: 0.8rem;
  border-left: 0.5rem solid var(--signature-orange);
  width: fit-content;
  min-width: 32rem;
  transition: all 0.3s ease;
}

.captcha-row:focus-within {
  background: #fff;
  box-shadow: 0 0 2rem rgba(248, 194, 93, 0.3);
}

.captcha-label {
  font-weight: 600;
  color: #333;
  font-size: 1.4rem;
  white-space: nowrap;
  line-height: 1; 
}

.captcha-label strong {
  color: var(--signature-orange);
}

.captcha-input {
  width: 9rem !important; 
  margin-bottom: 0 !important;
  text-align: center;
  font-weight: 800;
  border: 2px solid #ddd !important;
  color: var(--signature-orange) !important;
  padding-right: 1.2rem !important; 
}

/* --- Submit Button --- */
.btn-portal {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 1.8rem;
  border: none;
  font-family: var(--ff-headers);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.btn-portal:hover {
  background: var(--signature-orange);
  color: #000;
  transform: translateY(-0.2rem);
  box-shadow: 0 1rem 2rem rgba(248, 194, 93, 0.3);
}

.btn-portal.loading {
  background: #333 !important;
  color: #999 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.spinner {
  width: 1.8rem;
  height: 1.8rem;
  border: 0.3rem solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 11000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 4.5rem;
  border-radius: 1.2rem;
  text-align: center;
  max-width: 42rem;
  width: 90%;
  box-shadow: 0 0 4rem rgba(0,0,0,0.6);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon i {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.modal-content h3 {
  color: #000; 
  font-family: var(--ff-headers);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.modal-content p {
  color: #333; 
  font-family: var(--ff-main);
  font-size: 1.4rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.btn-modal {
  background: #000;
  color: #fff;
  border: none; 
  padding: 1.2rem 4rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  font-family: var(--ff-headers); 
}

.btn-modal:hover {
  background: var(--signature-orange);
  color: #000;
  transform: translateY(-0.2rem); 
  box-shadow: 0 0.5rem 1.5rem rgba(248, 194, 93, 0.3); 
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes modalPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Staggered Item Animation */
.form-row, .select-wrapper, textarea, .captcha-row, .btn-portal {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.form-row:nth-child(2) { animation-delay: 0.3s; }
.form-row:nth-child(3) { animation-delay: 0.4s; }
.select-wrapper { animation-delay: 0.5s; }
textarea { animation-delay: 0.6s; }
.captcha-row { animation-delay: 0.7s; }
.btn-portal { animation-delay: 0.8s; }