/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-page {
  min-height: 60vh;
  padding: 0 0 80px; /* Removed top padding for hero */
  background-color: var(--color-gray-50);
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-header .breadcrumb {
  justify-content: center;
  margin-bottom: var(--space-4);
}

.contact-title {
  font-size: var(--text-4xl);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}

.contact-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Section */
.contact-form-section {
  position: relative;
}

.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.form-subtitle {
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
}

/* Form Elements */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(35, 103, 115, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-sm);
}

.form-group.has-error .form-error {
  display: block;
}

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

/* Radio Buttons - Classic Dot Style */
.radio-group {
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.radio-option {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  user-select: none;
  cursor: pointer;
  position: relative;
  padding-left: 32px;
}

.radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-300);
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
}

.radio-label::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: transform 0.2s ease;
}

.radio-option:hover .radio-label::before {
  border-color: var(--color-primary);
}

.radio-option input:checked + .radio-label::before {
  border-color: var(--color-primary);
  border-width: 2px;
}

.radio-option input:checked + .radio-label::after {
  transform: translateY(-50%) scale(1);
}

.radio-option input:checked + .radio-label {
  color: var(--color-gray-900);
  font-weight: 600;
}

.radio-option input:focus-visible + .radio-label::before {
  box-shadow: 0 0 0 3px rgba(35, 103, 115, 0.2);
  outline: none;
}

/* Form Row - Single Column Layout (for "Vraag stellen") */
.form-row-single {
  grid-template-columns: 1fr !important;
}

.form-row-single .form-group {
  grid-column: 1 / -1;
}

/* Form Sections */
.form-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-gray-200);
}

/* B2B Notice */
.form-notice {
  background: #f0f7f9;
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: 1.5;
}

/* Radio Buttons - Verbeterde uitlijning */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .form-radio-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}

.form-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2) 0;
  min-height: 40px; /* Consistente hoogte */
}

.form-radio input {
  /* Verberg native radio maar behoud toegankelijkheid */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  background: white;
  cursor: pointer;
}

.form-radio:hover .radio-custom {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(35, 103, 115, 0.1);
}

.form-radio input:focus + .radio-custom {
  box-shadow: 0 0 0 3px rgba(35, 103, 115, 0.2);
  border-color: var(--color-primary);
  outline: none;
}

.form-radio input:checked + .radio-custom {
  border-color: var(--color-primary);
  border-width: 2px;
  background: white;
}

.form-radio input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.radio-label {
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: 1.4;
  user-select: none;
}

/* Checkbox - Universal Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 14px;
  color: var(--color-gray-700);
  font-weight: 400;
  transition: color 0.2s ease;
}

.checkbox-label:hover {
  color: var(--color-primary);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

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

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Prefilled Product */
.prefilled-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-primary-light);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.prefilled-product-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

.prefilled-product-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prefilled-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 520px) {
  .prefilled-product-preview {
    grid-template-columns: 1fr;
  }
  
  .prefilled-product-image {
    width: 100%;
    height: 200px;
  }
}

.prefilled-clear {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease;
}

.prefilled-clear:hover {
  background: rgba(255,255,255,0.3);
}

/* Submit Button */
.btn-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success Message */
.form-success {
  text-align: center;
  padding: var(--space-10);
}

.success-icon {
  width: 80px;
  height: 80px;
  color: var(--color-success);
  margin-bottom: var(--space-6);
}

.form-success h3 {
  font-size: var(--text-2xl);
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.form-success p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
}

.success-ref {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-8) !important;
}

.success-ref span {
  font-weight: 600;
  color: var(--color-primary);
}

/* Team Members */
.team-intro {
  color: var(--color-gray-600);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.team-member {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background-color: var(--color-gray-50);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease;
}

.team-member:hover {
  transform: translateY(-2px);
}

.member-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.member-info h4 {
  font-size: var(--text-base);
  color: var(--color-gray-900);
  margin: 0;
}

.member-info p {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.info-title {
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gray-100);
}

.info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.info-item p {
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.5;
}

.info-item a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--color-primary-dark);
}

/* Hours */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.hours-row span:first-child {
  color: var(--color-gray-600);
}

.hours-row span:last-child {
  font-weight: 600;
  color: var(--color-gray-900);
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--color-gray-700);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.quick-link:hover {
  color: var(--color-primary);
  padding-left: var(--space-2);
}

.quick-link svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page {
    padding: 0 0 40px;
  }
  
  .form-card {
    padding: var(--space-5);
  }
  
  .contact-title {
    font-size: var(--text-3xl);
  }
  
  .form-radio-group {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .radio-group {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .page-hero .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .page-title {
    font-size: var(--text-2xl);
    word-break: break-word;
  }
  
  .page-subtitle {
    font-size: var(--text-sm);
  }
  
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .map-container iframe {
    width: 100%;
  }
  
  .btn-submit {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
  }
}
