/* ============================================
   CubeBS Contact Page Styles
   ============================================ */

/* --- Base Layout --- */
.cubebs-contact-page {
  font-family: 'Inter', sans-serif;
  color: #1a1e2b;
  line-height: 1.5;
}

.cubebs-contact-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Page Title --- */
.cubebs-contact-page .page-title {
  background: linear-gradient(120deg, #f9fcff 0%, #f0f5fa 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.cubebs-contact-page .page-title h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0b2b44;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cubebs-contact-page .page-title p {
  font-size: 1.2rem;
  color: #3a4a66;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Contact Grid --- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 70px 0 80px;
}

/* --- Left: Contact Info --- */
.contact-info {
  flex: 1;
  min-width: 300px;
  background: #f8fafd;
  border-radius: 32px;
  padding: 36px 32px;
  border: 1px solid #eef2f6;
}

.contact-info h3 {
  font-size: 1.7rem;
  margin-bottom: 24px;
  font-weight: 700;
  color: #1f2b4e;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.info-icon {
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #1e466e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.info-text h4 {
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f2b4e;
  font-size: 1.1rem;
}

.info-text p,
.info-text a {
  color: #4a627a;
  text-decoration: none;
  transition: color 0.2s;
}

.info-text a:hover {
  color: #2c7da0;
}

.info-text .hours {
  font-size: 0.85rem;
  color: #6c86a3;
}

.social-contact {
  margin-top: 40px;
}

.social-contact h4 {
  margin-bottom: 16px;
  color: #1f2b4e;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #1e466e;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
}

.social-icons a:hover {
  background: #1e466e;
  color: white;
  transform: translateY(-3px);
}

/* --- Right: Contact Form 7 Wrapper --- */
.contact-form-wrapper {
  flex: 1.2;
  min-width: 320px;
  background: white;
  border-radius: 32px;
  padding: 36px 32px;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
  border: 1px solid #eef2f6;
}

.contact-form-wrapper h3 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  font-weight: 700;
  color: #1f2b4e;
}

/* --- Contact Form 7 Overrides --- */
.contact-form-wrapper .wpcf7 {
  width: 100%;
}

.contact-form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-wrapper .wpcf7-form p {
  margin: 0;
}

.contact-form-wrapper .wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2b4e;
  font-size: 0.95rem;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea,
.contact-form-wrapper .wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cfdfed;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.2s;
  background: #ffffff;
  color: #1a1e2b;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus,
.contact-form-wrapper .wpcf7-form select:focus {
  outline: none;
  border-color: #2c7da0;
  box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

.contact-form-wrapper .wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.contact-form-wrapper .wpcf7-form input[type="submit"],
.contact-form-wrapper .wpcf7-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  color: white;
  background: #1e466e;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-form button[type="submit"]:hover {
  background: #0f2c48;
  transform: translateY(-2px);
}

/* CF7 Validation & Messages */
.contact-form-wrapper .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 6px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-wrapper .wpcf7-response-output {
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.contact-form-wrapper .wpcf7-spinner {
  margin: 0 auto;
  display: block;
}

.cf7-missing {
  color: #dc2626;
  background: #fef2f2;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

/* Form Note */
.form-note {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 20px;
  color: #6c86a3;
}

.form-note i {
  margin-right: 4px;
}

/* --- Map Section --- */
.map-section {
  margin-bottom: 80px;
}

.map-wrapper {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.1);
  border: 1px solid #eef2f6;
}

.map-placeholder {
  background: #e2e8f0;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #2c3e50;
  font-size: 1rem;
  text-align: center;
  padding: 24px;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.map-placeholder strong {
  color: #0b2b44;
}

.map-link {
  font-size: 0.85rem;
  margin-top: 8px;
}

.map-link a {
  color: #1e466e;
  text-decoration: none;
  font-weight: 600;
}

.map-link a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    gap: 32px;
    margin: 40px 0 60px;
  }
  
  .cubebs-contact-page .page-title h1 {
    font-size: 2rem;
  }
  
  .cubebs-contact-page .page-title p {
    font-size: 1.05rem;
  }
  
  .contact-info,
  .contact-form-wrapper {
    padding: 28px 24px;
    border-radius: 24px;
  }
  
  .info-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .map-placeholder {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .cubebs-contact-page .page-title {
    padding: 40px 0 32px;
  }
  
  .cubebs-contact-page .page-title h1 {
    font-size: 1.6rem;
  }
}