/*
================================================================
  Icecubetech - Contact Page Stylesheet
  Author: Antigravity AI
  Matches requested screenshot layout with Icecubetech design system
================================================================
*/

/* --- Base Contact Page Settings --- */
.contact-page {
  background-color: var(--color-white);
  color: var(--color-slate-800);
}

/* Clear fixed header */
.contact-hero-section {
  padding-top: 150px;
  padding-bottom: 2rem;
  background-color: var(--color-white);
}

/* --- Hero Header Block --- */
.contact-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.get-in-touch-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b82f5 !important;/* Orange/peach accent */
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.get-in-touch-label::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 2px;
  background-color: #3b82f5 !important;
}

.contact-main-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* --- Body Section Layout --- */
.contact-body-section {
  padding-bottom: 6rem;
  background-color: var(--color-white);
}

.contact-body-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 5rem;
  align-items: start;
}

/* Column Headings & Subtitles */
.column-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.column-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-slate-600);
  margin-bottom: 2.5rem;
}

/* --- Form Fields & Styles --- */
.contact-form-custom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.required-asterisk {
  color: #c83b50;
  margin-left: 2px;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--color-slate-400);
  opacity: 0.8;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
  outline: none;
}

.field-textarea {
  height: 160px;
  resize: vertical;
}

/* Checkbox Wrapper */
.form-field-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.field-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #c83b50;
  cursor: pointer;
}

.checkbox-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  cursor: pointer;
}

.colored-link {
  color: #c83b50; /* Red/pink link color from screenshot */
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.colored-link:hover {
  text-decoration: underline;
  color: #a0283a;
}

/* Submit Button Override */
.submit-btn-custom {
  align-self: flex-start;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 0.9rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px; /* Squared-ish button */
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.submit-btn-custom:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 98, 254, 0.25);
}

/* Success message block */
.form-success-box {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  background-color: var(--color-gray-50);
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  animation: slideInUp 0.4s ease-out forwards;
}

.form-success-box.visible {
  display: flex;
}

.form-success-box .success-icon {
  font-size: 3.5rem;
  color: #10b981; /* Green success */
  margin-bottom: 1.5rem;
}

.form-success-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.form-success-box p {
  color: var(--color-slate-600);
  max-width: 400px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.close-success-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
}

/* --- Right Column: Office Location Visuals & Contacts --- */
.office-visual-container {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.office-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.office-visual-container:hover .office-img {
  transform: scale(1.03);
}

.office-address-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.office-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-icon {
  font-size: 1rem;
  color: var(--color-dark);
  width: 20px;
  text-align: center;
}

.detail-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.detail-link:hover {
  color: var(--color-primary);
}

/* --- Floating widgets --- */
/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #262626; /* Dark gray circle from screenshot */
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--color-dark);
  transform: translateY(-3px);
}

/* Manage Consent Banner Button */
.manage-consent-btn {
  position: fixed;
  bottom: 0;
  right: 2rem;
  background-color: var(--color-white);
  color: var(--color-slate-600);
  border: 1px solid var(--color-gray-200);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
  transition: all 0.2s ease;
}

.manage-consent-btn:hover {
  background-color: var(--color-gray-50);
  color: var(--color-dark);
}

/* Consent Modal Card */
.consent-popup-card {
  position: fixed;
  bottom: 3.5rem;
  right: 2rem;
  width: 320px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 101;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-popup-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-popup-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.consent-popup-content p {
  font-size: 0.8rem;
  color: var(--color-slate-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.consent-popup-buttons {
  display: flex;
  gap: 0.5rem;
}

.consent-btn {
  flex: 1;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.accept-btn {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
}

.accept-btn:hover {
  background-color: var(--color-primary);
}

.reject-btn {
  background-color: transparent;
  color: var(--color-slate-600);
  border: 1px solid var(--color-gray-200);
}

.reject-btn:hover {
  background-color: var(--color-gray-50);
  color: var(--color-dark);
}

/* --- Animations --- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .contact-body-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .contact-hero-section {
    padding-top: 120px;
  }

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

  .contact-body-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .column-subtitle {
    margin-bottom: 1.5rem;
  }

  .map-container iframe {
    height: 320px;
  }
  
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .manage-consent-btn {
    right: 1.5rem;
  }

  .consent-popup-card {
    right: 1.5rem;
    width: calc(100% - 3rem);
    max-width: 340px;
  }
}

/* --- Map Section Styles --- */
.contact-map-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
}

.map-header-block {
  text-align: center;
  margin-bottom: 3rem;
}

.map-section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b82f5 !important;/* Orange/peach accent */
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.map-section-label::before,
.map-section-label::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: #3b82f5 !important;
}

.map-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.map-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-slate-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  line-height: 0;
}

.map-container iframe {
  filter: grayscale(0.25) contrast(1.05);
  transition: filter 0.3s ease;
  display: block;
}

.map-container iframe:hover {
  filter: none;
}
