/* Contact Page Styles */
.contact-page {
  font-family: "Poppins", sans-serif;
  color: #4f4f51;
}

/* Global font family for contact page */
body {
  font-family: "Poppins", sans-serif !important;
}

/* Ensure all text elements use Poppins */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button,
.hero-title, .hero-subtitle, .category-title, .category-description,
.form-title, .offices-title, .office-info h4,
.btn-primary, .btn-secondary, .btn-submit,
label, input, select, textarea {
  font-family: "Poppins", sans-serif !important;
}

/* Enhanced Contact-specific styling */
.contact-hero-accent {
  background: linear-gradient(135deg, #01898c 0%, #00b4d8 50%, #01898c 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced floating elements for Contact theme */
.queue-hero .floating-element-1.contact-element {
  background: radial-gradient(circle, rgba(1, 137, 140, 0.15) 0%, transparent 70%);
  animation: contactFloat 6s ease-in-out infinite;
}

.queue-hero .floating-element-2.contact-element {
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  animation: contactFloat 8s ease-in-out infinite reverse;
}

@keyframes contactFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.1);
  }
}

/* Enhanced hero title with Contact theme */
.hero-title.contact-title {
  position: relative;
  display: inline-block;
}

.hero-title.contact-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #01898c, #00b4d8);
  opacity: 0.3;
  border-radius: 1px;
}

/* Enhanced buttons with Contact theme */
.btn-primary.contact-btn {
  background: linear-gradient(135deg, #01898c, #00b4d8);
  position: relative;
  overflow: hidden;
}

.btn-primary.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary.contact-btn:hover::before {
  left: 100%;
}

/* Enhanced category headers */
.category-header.contact-header {
  position: relative;
}

.category-header.contact-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #01898c, #00b4d8);
  border-radius: 2px;
}

/* Hero Section */
.queue-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f0f8ff 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem 0;
}

.queue-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(1, 137, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(1, 137, 140, 0.05) 0%, transparent 50%);
  opacity: 0.8;
  z-index: 1;
}

/* Floating background elements */
.queue-hero .floating-element-1 {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(1, 137, 140, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.queue-hero .floating-element-2 {
  content: '';
  position: absolute;
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  background: linear-gradient(135deg, #01898c, #00b4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  animation: fadeInUp 0.8s ease;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: #727376;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #4f4f51;
  font-weight: 300;
}

.feature-item i {
  color: #01898c;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 300;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #01898c, #00b4d8);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(1, 137, 140, 0.3);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: #01898c;
  border: 2px solid #01898c;
}

.btn-secondary:hover {
  background: #01898c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(1, 137, 140, 0.3);
}

.hero-image-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Products Section */
.products-section {
  padding: 5rem 0;
  background: white;
}

.product-category {
  margin-bottom: 5rem;
}

.product-category:last-child {
  margin-bottom: 0;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #01898c;
  margin-bottom: 1rem;
}

.category-description {
  font-size: 1.1rem;
  font-weight: 300;
  color: #727376;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Form Card */
.contact-form-card {
  background: white;
  border-radius: 15px;
  border: 1px solid rgba(1, 137, 140, 0.1);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(1, 137, 140, 0.1);
  transition: all 0.3s ease;
}

.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(1, 137, 140, 0.15);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #01898c;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 400;
  color: #4f4f51;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(1, 137, 140, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background: white;
  color: #4f4f51;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #01898c;
  box-shadow: 0 0 0 3px rgba(1, 137, 140, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #4f4f51;
  font-weight: 300;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(1, 137, 140, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #01898c;
  border-color: #01898c;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Offices Card */
.offices-card {
  background: white;
  border-radius: 15px;
  border: 1px solid rgba(1, 137, 140, 0.1);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(1, 137, 140, 0.1);
  transition: all 0.3s ease;
}

.offices-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(1, 137, 140, 0.15);
}

.offices-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #01898c;
  margin-bottom: 1.5rem;
  text-align: center;
}

.offices-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(1, 137, 140, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #01898c, #00b4d8);
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(1, 137, 140, 0.1);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flag-container {
  width: 45px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.office-info h4 {
  font-size: 1.1rem;
  font-weight: 300;
  color: #4f4f51;
  margin-bottom: 0.25rem;
}

.office-type {
  font-size: 0.75rem;
  color: #01898c;
  font-weight: 300;
  background: rgba(1, 137, 140, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.office-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item i {
  color: #01898c;
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-item p {
  font-size: 0.9rem;
  color: #4f4f51;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
/* Tablet and smaller desktop */
@media (max-width: 992px) {
  .queue-hero {
    min-height: auto;
    padding: 2rem 0 3rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .category-title {
    font-size: 2.2rem;
  }
  
  .category-description {
    font-size: 1.1rem;
  }
  
  .contact-form-card,
  .offices-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .queue-hero {
    padding: 1.5rem 0 2.5rem 0;
    margin-top: 0;
  }
  
  .queue-hero .container-lg {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Reorder hero content for mobile - title first, then image */
  .queue-hero .row {
    flex-direction: column;
  }
  
  .queue-hero .col-lg-6:first-child {
    order: 1;
  }
  
  .queue-hero .col-lg-6:last-child {
    order: 2;
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 400;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .hero-features {
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
  }
  
  .feature-item {
    font-size: 1rem;
    text-align: left;
    padding: 0.5rem 0;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    flex: 1;
    max-width: 160px;
    padding: 14px 16px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 48px;
    border-radius: 8px;
  }
  
  .hero-image-container {
    display: none;
  }
  
  .products-section {
    padding: 2.5rem 0;
  }
  
  .product-category {
    margin-bottom: 2.5rem;
  }
  
  .category-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .category-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-form-card,
  .offices-card {
    padding: 1.5rem;
  }
  
  .form-title,
  .offices-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .contact-form {
    gap: 1.2rem;
  }
  
  .office-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .flag-container {
    width: 50px;
    height: 35px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .queue-hero {
    padding: 0.8rem 0 1.5rem 0;
    margin-top: 0;
  }
  
  .queue-hero .container-lg {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  
  /* Maintain mobile layout order - image first */
  .queue-hero .col-lg-6:last-child {
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-align: left;
    font-weight: 400;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    text-align: left;
  }
  
  .hero-features {
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    justify-content: flex-start;
  }
  
  .feature-item {
    font-size: 0.85rem;
    text-align: left;
  }
  
  .feature-item i {
    font-size: 1rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    flex: 1;
    max-width: 130px;
    padding: 10px 6px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    min-height: 44px;
  }
  
  .hero-image-container {
    display: none;
  }
  
  .products-section {
    padding: 2rem 0;
  }
  
  .product-category {
    margin-bottom: 2rem;
  }
  
  .category-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }
  
  .category-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form-card,
  .offices-card {
    padding: 1rem;
  }
  
  .form-title,
  .offices-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .contact-form {
    gap: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .office-card {
    padding: 1rem;
  }
  
  .contact-item p {
    font-size: 0.85rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .queue-hero {
    padding: 0.6rem 0 1.2rem 0;
    margin-top: 0;
  }
  .queue-hero .container-lg {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 400;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .hero-features {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
  }
  
  .feature-item {
    font-size: 0.9rem;
    text-align: left;
    padding: 0.3rem 0;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    flex: 1;
    max-width: 110px;
    padding: 8px 4px;
    font-size: 0.75rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    min-height: 44px;
  }
  
  .hero-image-container {
    display: none;
  }
  
  .category-title {
    font-size: 1.3rem;
  }
  
  .category-description {
    font-size: 0.85rem;
  }
  
  .contact-form-card,
  .offices-card {
    padding: 0.8rem;
  }
  
  .form-title,
  .offices-title {
    font-size: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .office-card {
    padding: 0.8rem;
  }
  
  .contact-item p {
    font-size: 0.8rem;
  }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
  /* Improve touch targets */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
  }
  
  /* Better spacing for mobile */
  .container-lg {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Improve text readability */
  .hero-subtitle,
  .category-description,
  .contact-item p {
    line-height: 1.6;
  }
  
  /* Better button spacing */
  .hero-buttons {
    margin-top: 1rem;
  }
}