/**
 * StudentJob - Contact Page Styles
 * Matches modern floating card design with soft sky-blue canvas
 */

.contact-page-wrapper {
  background: linear-gradient(180deg, #f0f5fa 0%, #e8f1f8 100%);
  padding: 4.5rem 1.5rem 4.5rem;
  box-sizing: border-box;
  font-family: inherit;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 4.5rem;
  align-items: start;
}

/* Left Column: Information & Details */
.contact-info-col {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

.contact-main-heading {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.08;
  color: #0f172a;
  letter-spacing: -0.035em;
  margin: 0 0 1.35rem 0;
}

.contact-main-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475569;
  max-width: 520px;
  margin: 0 0 2.25rem 0;
  font-weight: 400;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 4.5rem;
}

.contact-direct-item {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  width: fit-content;
}

.contact-direct-item:hover {
  color: #1d68ff;
}

.contact-direct-link-underlined {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  width: fit-content;
}

.contact-direct-link-underlined:hover {
  color: #1d68ff;
  text-decoration-color: #1d68ff;
}

/* Bottom 3 Feature Columns */
.contact-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-feature-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.contact-feature-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.contact-feature-desc a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.contact-feature-desc a:hover {
  color: #1d68ff;
}

/* Right Column: Floating Contact Card */
.contact-card-col {
  display: flex;
  justify-content: flex-end;
}

.contact-floating-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 0 10px 25px -5px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 3rem 2.5rem 2.5rem;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem 0;
  line-height: 1.15;
}

.contact-card-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 2rem 0;
  font-weight: 400;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-input-wrap {
  position: relative;
  width: 100%;
}

.contact-form-input,
.contact-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #0f172a;
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.contact-form-input {
  height: 52px;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
  border-color: #1d68ff;
  box-shadow: 0 0 0 3px rgba(29, 104, 255, 0.12);
  background-color: #ffffff;
}

/* Email with icon */
.contact-input-with-icon .contact-form-input {
  padding-left: 2.85rem;
}

.contact-input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone Number with Country Selector */
.contact-phone-group {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  height: 52px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.contact-phone-group:focus-within {
  border-color: #1d68ff;
  box-shadow: 0 0 0 3px rgba(29, 104, 255, 0.12);
}

.contact-country-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  border-right: 1px solid #e2e8f0;
  padding: 0 0.9rem;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.contact-country-picker-btn:hover {
  background-color: #f8fafc;
}

.contact-country-picker-btn svg {
  color: #64748b;
  transition: transform 0.2s ease;
}

.contact-country-picker-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.contact-phone-input {
  flex: 1;
  border: none;
  background: transparent;
  height: 100%;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-phone-input::placeholder {
  color: #94a3b8;
}

/* Country Dropdown Menu (Matches Main Dropdown Design) */
.contact-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  width: 330px;
  max-width: calc(100vw - 32px);
  max-height: 290px;
  z-index: 50;
  display: none;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-country-dropdown.active {
  display: flex;
  flex-direction: column;
  animation: contactFadeIn 0.18s ease-out;
}

.contact-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  user-select: none;
  text-decoration: none;
  margin-bottom: 2px;
  gap: 8px;
}

.contact-country-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.contact-country-item.selected {
  background-color: #eff6ff;
  color: #1d68ff;
  font-weight: 600;
}

/* Textarea & Character Counter */
.contact-textarea-wrap {
  position: relative;
  width: 100%;
}

.contact-form-textarea {
  min-height: 135px;
  resize: vertical;
  padding-bottom: 2rem;
  display: block;
}

.contact-char-counter {
  position: absolute;
  right: 1.1rem;
  bottom: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 1px 4px;
  border-radius: 4px;
}

.contact-char-counter.limit-near {
  color: #f59e0b;
}

.contact-char-counter.limit-reached {
  color: #ef4444;
  font-weight: 700;
}

/* Anti-Bot Verification Checkbox Widget */
.contact-bot-check-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  transition: all 0.2s ease;
  user-select: none;
}

.contact-bot-check-wrap:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.contact-bot-check-wrap.is-checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.contact-bot-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.contact-bot-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.contact-bot-checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.contact-bot-checkbox-custom svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-bot-checkbox-label:hover .contact-bot-checkbox-custom {
  border-color: #1d68ff;
}

.contact-bot-checkbox-label input[type="checkbox"]:checked + .contact-bot-checkbox-custom {
  background: #10b981;
  border-color: #10b981;
}

.contact-bot-checkbox-label input[type="checkbox"]:checked + .contact-bot-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.contact-bot-label-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.contact-bot-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  white-space: nowrap;
}

.contact-bot-shield-badge svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Submit Button */
.contact-submit-btn {
  width: 100%;
  height: 52px;
  background: #1d68ff;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 0.35rem;
  box-shadow: 0 4px 12px rgba(29, 104, 255, 0.2);
}

.contact-submit-btn:hover {
  background: #1555d4;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 104, 255, 0.35);
}

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

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Legal Terms Note */
.contact-terms-notice {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0.35rem 0 0 0;
}

.contact-terms-notice a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.contact-terms-notice a:hover {
  color: #1d68ff;
}

/* Response Message Banner */
.contact-response-banner {
  display: none;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  animation: contactFadeIn 0.25s ease-out;
}

.contact-response-banner.success {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.contact-response-banner.error {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Spinner */
.contact-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
  display: inline-block;
}

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

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Location & Interactive Map Section (Full-Width Pure White Canvas)
   ========================================================================== */
.contact-location-section {
  background: #ffffff;
  padding: 5.5rem 1.5rem 6.5rem;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.contact-location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

/* Map Column & Card Overlay */
.contact-map-col {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 26px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(148, 163, 184, 0.25);
}

/* Crops out the native Google embed top-left card and bottom watermark */
.contact-map-iframe {
  position: absolute;
  top: -130px;
  left: 0;
  width: 100%;
  height: calc(100% + 195px);
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Floating White Card on Map (Only StudentJob Inc. Card Visible) */
.contact-map-overlay-card {
  position: absolute;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  z-index: 5;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.9);
  width: 250px;
  box-sizing: border-box;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-map-overlay-card:hover {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 22px 42px -6px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.contact-map-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-map-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1d68ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(29, 104, 255, 0.25);
}

.contact-map-card-brand {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-map-card-company {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-map-card-tagline {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-map-card-address {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.contact-map-card-address span:first-child {
  font-weight: 700;
  color: #0f172a;
}

.contact-map-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.contact-map-card-link:hover {
  color: #1d68ff;
  gap: 0.55rem;
}

.contact-map-card-link svg {
  transition: transform 0.15s ease;
}

.contact-map-card-link:hover svg {
  transform: translateX(2px);
}

/* Pulsing Blue Location Pin Marker */
.contact-map-pin {
  position: absolute;
  top: calc(50% + 120px);
  left: calc(12% + 115px);
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 4;
}

.contact-map-pin-pulse {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29, 104, 255, 0.3);
  animation: mapPinPulse 2.2s infinite ease-out;
}

.contact-map-pin-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1d68ff;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(29, 104, 255, 0.5);
}

@keyframes mapPinPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Right Column: Location Text Information */
.contact-location-info {
  display: flex;
  flex-direction: column;
}

.contact-location-badge {
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.contact-location-heading {
  font-size: 2.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 2.25rem 0;
}

.contact-location-office {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.85rem 0;
}

.contact-location-address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-location-line {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-card-col {
    justify-content: center;
  }

  .contact-floating-card {
    max-width: 600px;
  }

  .contact-main-heading {
    font-size: 3rem;
  }

  .contact-direct-list {
    margin-bottom: 3rem;
  }

  .contact-location-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-location-section {
    padding: 4.5rem 1.5rem 5rem;
  }

  .contact-location-heading {
    font-size: 2.4rem;
  }

  .contact-map-col {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 3rem 1.25rem 3.5rem;
  }

  .contact-main-heading {
    font-size: 2.5rem;
  }

  .contact-main-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .contact-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.75rem;
  }

  .contact-floating-card {
    padding: 2.25rem 1.5rem 2rem;
    border-radius: 22px;
  }

  .contact-card-title {
    font-size: 1.85rem;
  }

  .contact-form-row-split {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .contact-location-section {
    padding: 3.5rem 1.25rem 4.5rem;
  }

  .contact-location-heading {
    font-size: 2rem;
    margin-bottom: 1.75rem;
  }

  .contact-map-col {
    height: 380px;
    border-radius: 20px;
  }

  .contact-map-iframe {
    top: -115px;
    height: calc(100% + 175px);
  }

  .contact-map-overlay-card {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    transform: none;
    padding: 1.1rem;
  }

  .contact-map-overlay-card:hover {
    transform: none;
  }

  .contact-map-pin {
    display: none;
  }
}
