/* Contact Page Specific Styles - Refined */

/* Contact Hero Section */
.contact-hero {
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  display: none;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.contact-hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* Contact Form Section */
.contact-form-section {
  padding: 60px 0 120px;
  background-color: var(--color-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* Contact Info */
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-main);
  margin-bottom: 20px;
  font-weight: 500;
}

.contact-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-item:hover {
  transform: none;
  box-shadow: none;
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--color-bg-light);
  color: var(--color-text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.contact-details h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-details p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-main);
  font-weight: 400;
  margin-bottom: 5px;
}

.contact-details span {
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

/* Contact Form */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 60px;
  box-shadow: none;
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: 500;
}

.form-header p {
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.required {
  color: var(--color-accent);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-text-main);
  background: #fff;
  box-shadow: none;
}

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

.form-help {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-top: 5px;
  font-style: normal;
}

/* Checkbox Styling */
.checkbox-group {
  margin: 30px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-sub);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--color-text-main);
  border-color: var(--color-text-main);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

.privacy-link {
  color: var(--color-text-main);
  text-decoration: underline;
}

.privacy-link:hover {
  color: var(--color-accent);
}

/* Submit Button */
.form-submit {
  width: 100%;
  background: var(--color-text-main);
  color: #fff;
  border: 1px solid var(--color-text-main);
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

.form-submit:hover {
  background: #fff;
  color: var(--color-text-main);
  transform: none;
  box-shadow: none;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
  color: #e74c3c; /* Error color stays red usually */
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e74c3c;
  background: #fff;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 40px;
  background: var(--color-bg-light);
  border-radius: 0;
  border: 1px solid var(--color-border);
}

.success-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px;
  font-weight: normal;
}

.success-message h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 15px;
}

.success-message p {
  color: var(--color-text-sub);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-back {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-back:hover {
  background: var(--color-text-main);
  color: #fff;
  transform: none;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.faq-item {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  border-left: 1px solid var(--color-border); /* consistent border */
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: none;
  border-color: var(--color-text-main);
}

.faq-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: 500;
}

.faq-item p {
  color: var(--color-text-sub);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }
  
  .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .contact-hero-subtitle {
    font-size: 0.9rem;
  }
  
  .contact-form-section {
    padding: 40px 0;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .contact-info h2 {
    font-size: 1.6rem;
  }
  
  .contact-item {
    padding: 0;
    gap: 15px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-item {
    padding: 25px 20px;
  }
}
