/* ===========================
   CONTACT PAGE - İLETİŞİM
   Bootstrap Compatible with ct- Prefix
   =========================== */

/* ===========================
   POPPINS FONT IMPORT
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ===========================
   CSS VARIABLES
   =========================== */

:root {
  /* Brand Colors */
  --ct-orange: #ff6a00;
  --ct-orange-hover: #ff7700;
  --ct-text: #1d1d1f;
  --ct-text-muted: #6b6b6b;
  --ct-bg: #ffffff;
  --ct-surface: #f6f6f7;
  --ct-border: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --ct-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Shadows */
  --ct-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --ct-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --ct-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --ct-transition: 200ms ease;
}

/* ===========================
   1. HERO SECTION WITH BREADCRUMB
   =========================== */

.ct-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  background-image: url('../../../assets/img/bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 2rem 0;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.ct-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.7) 50%, rgba(26, 26, 26, 0.85) 100%);
  z-index: 1;
}

.ct-hero .container {
  position: relative;
  z-index: 2;
}

.ct-hero-content h1 {
  font-family: var(--ct-font-family);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ct-hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 56px;
  height: 3px;
  background-color: var(--ct-orange);
  border-radius: 2px;
}

.ct-hero-subtitle {
  font-family: var(--ct-font-family);
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
  margin: 20px 0 0 0;
  line-height: 1.6;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Navigation */
.ct-breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.ct-breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ct-font-family);
  font-size: 0.9375rem;
  font-weight: 400;
}

.ct-breadcrumb-item {
  display: flex;
  align-items: center;
}

.ct-breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.75rem;
  color: #cccccc;
  font-size: 1rem;
  font-weight: 300;
}

.ct-breadcrumb-link {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--ct-transition);
  padding: 0.25rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ct-breadcrumb-link:hover {
  color: var(--ct-orange);
  text-decoration: none;
}

.ct-breadcrumb-link:focus-visible {
  outline: 2px solid var(--ct-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.ct-breadcrumb-item--active .ct-breadcrumb-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================
   2. BRANCH CARDS SECTION
   =========================== */

.ct-branches-section {
  background-color: var(--ct-bg);
}

.ct-section-header h2 {
  font-family: var(--ct-font-family);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ct-text);
  margin-bottom: 1rem;
}

.ct-section-subtitle {
  font-family: var(--ct-font-family);
  font-size: 1.125rem;
  color: var(--ct-text-muted);
  margin: 0;
}


/* Branch Cards */
.ct-branch-card {
  background-color: var(--ct-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px 28px;
  height: 100%;
  transition: all var(--ct-transition);
  box-shadow: var(--ct-shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Equal height for desktop */
@media (min-width: 768px) {
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
}

.ct-branch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ct-shadow-md);
}

/* Branch Header */
.ct-branch-header {
  margin-bottom: 1.5rem;
}

.ct-branch-badge {
  display: inline-block;
  background-color: var(--ct-orange);
  color: var(--ct-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--ct-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.ct-branch-description {
  font-family: var(--ct-font-family);
  font-size: 0.875rem;
  color: var(--ct-text-muted);
  margin: 0;
}

/* Branch Content */
.ct-branch-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Info Items */
.ct-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ct-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--ct-orange);
  color: var(--ct-bg);
  border-radius: 8px;
  font-size: 20px;
  flex-shrink: 0;
}

.ct-info-content {
  flex: 1;
}

.ct-info-content h4 {
  font-family: var(--ct-font-family);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ct-text);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.ct-info-content p {
  font-family: var(--ct-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ct-text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

/* Contact Links */
.ct-contact-link {
  display: block;
  color: var(--ct-text);
  text-decoration: none;
  font-family: var(--ct-font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color var(--ct-transition);
  word-break: break-all;
}

.ct-contact-link:hover {
  color: var(--ct-orange);
  text-decoration: underline;
}

.ct-contact-link:focus-visible {
  outline: 2px solid var(--ct-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.ct-contact-link:last-child {
  margin-bottom: 0;
}

/* Contact Text (for addresses) */
.ct-contact-text {
  font-family: var(--ct-font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ct-text);
  line-height: 1.5;
  word-break: break-word;
}

/* ===========================
   3. FORM AND MAP SECTION
   =========================== */

.ct-form-map-section {
  background-color: var(--ct-bg);
}

.ct-form-container {
  background-color: var(--ct-bg);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--ct-shadow-sm);
}

.ct-form-header h2 {
  font-family: var(--ct-font-family);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ct-text);
  margin-bottom: 0.5rem;
}

.ct-form-subtitle {
  font-family: var(--ct-font-family);
  font-size: 1rem;
  color: var(--ct-text-muted);
  margin: 0;
}

/* Custom Alerts */
.ct-alert {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.ct-alert--success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.ct-alert--danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.ct-alert-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.ct-alert-content h4 {
  font-family: var(--ct-font-family);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.ct-alert-content p {
  font-family: var(--ct-font-family);
  font-size: 0.9375rem;
  margin: 0;
}

/* Form Styling */
.ct-contact-form {
  font-family: var(--ct-font-family);
}

.ct-form-group {
  position: relative;
  margin-bottom: 0;
}

.ct-form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--ct-border);
  border-radius: 8px;
  font-family: var(--ct-font-family);
  font-size: 1rem;
  background-color: var(--ct-bg);
  transition: all var(--ct-transition);
  outline: none;
}

.ct-form-control:focus {
  border-color: var(--ct-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.15);
}

.ct-form-control:focus + .ct-form-label,
.ct-form-control:not(:placeholder-shown) + .ct-form-label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--ct-orange);
}

.ct-form-label {
  position: absolute;
  top: 1rem;
  left: 3rem;
  font-family: var(--ct-font-family);
  font-size: 1rem;
  color: var(--ct-text-muted);
  transition: all var(--ct-transition);
  pointer-events: none;
  transform-origin: left top;
}

.ct-form-label i {
  position: absolute;
  left: -2rem;
  top: 0;
  color: var(--ct-text-muted);
  transition: color var(--ct-transition);
}

.ct-form-control:focus + .ct-form-label i {
  color: var(--ct-orange);
}

/* Textarea specific */
textarea.ct-form-control {
  resize: vertical;
  min-height: 120px;
}

/* Captcha */
.ct-captcha-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ct-captcha-help {
  font-family: var(--ct-font-family);
  font-size: 0.875rem;
}

/* Bootstrap Button Extension */
.btn-ct-orange {
  background-color: var(--ct-orange);
  border-color: var(--ct-orange);
  color: var(--ct-bg);
  font-family: var(--ct-font-family);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: all var(--ct-transition);
  box-shadow: var(--ct-shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-ct-orange:hover {
  background-color: var(--ct-bg);
  border-color: var(--ct-orange);
  color: var(--ct-orange);
  transform: translateY(-1px);
  box-shadow: var(--ct-shadow-md);
}

.btn-ct-orange:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.25);
}

.btn-ct-orange:active {
  transform: translateY(0);
}

/* Map Section */
.ct-map-container {
  background-color: var(--ct-bg);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--ct-shadow-sm);
  height: 100%;
}

.ct-map-header h3 {
  font-family: var(--ct-font-family);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ct-text);
  margin-bottom: 0.5rem;
}

.ct-map-subtitle {
  font-family: var(--ct-font-family);
  font-size: 1rem;
  color: var(--ct-text-muted);
  margin: 0;
}

.ct-map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ct-shadow-sm);
}

.ct-map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.ct-map-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ct-map-info-item {
  display: flex;
  align-items: center;
  font-family: var(--ct-font-family);
  font-size: 0.9375rem;
  color: var(--ct-text);
}

.ct-map-info-item i {
  margin-right: 0.5rem;
  color: var(--ct-orange);
  font-size: 0.875rem;
  width: 16px;
}

/* ===========================
   4. RESPONSIVE DESIGN
   =========================== */

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .ct-breadcrumb {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  
  .ct-hero-content h1 {
    font-size: 2.25rem;
  }
  
  .ct-section-header h2 {
    font-size: 2rem;
  }
  
  .ct-form-container {
    padding: 1.5rem;
  }
  
  .ct-map-wrapper iframe {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .ct-hero {
    padding: 1.5rem 0;
    min-height: 220px;
  }
  
  .ct-hero-content h1 {
    font-size: 36px;
  }
  
  .ct-hero-subtitle {
    font-size: 1rem;
  }
  
  .ct-breadcrumb-list {
    font-size: 0.875rem;
  }
  
  .ct-breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
  }
  
  .ct-branch-card {
    padding: 16px 20px;
  }
  
  .ct-info-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .ct-branch-content {
    gap: 1rem;
  }
  
  .ct-form-container {
    padding: 1.25rem;
  }
  
  .ct-form-control {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  }
  
  .ct-form-label {
    left: 2.75rem;
    top: 0.875rem;
  }
  
  .ct-form-label i {
    left: -1.75rem;
  }
}

@media (max-width: 575.98px) {
  .ct-hero {
    min-height: 200px;
  }
  
  .ct-hero-content h1 {
    font-size: 28px;
  }
  
  .ct-hero-content h1::after {
    width: 48px;
  }
  
  .ct-section-header h2 {
    font-size: 1.75rem;
  }
  
  .ct-branch-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }
  
  .ct-form-header h2 {
    font-size: 1.75rem;
  }
  
  .btn-ct-orange {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* ===========================
   5. ACCESSIBILITY & PERFORMANCE
   =========================== */

/* Focus states */
.ct-branch-card:focus-within {
  outline: 2px solid var(--ct-orange);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ct-branch-card:hover {
    transform: none !important;
  }
  
  .btn-ct-orange:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ct-hero-content h1::after {
    height: 4px;
  }
  
  .ct-form-control {
    border-width: 3px;
  }
  
  .btn-ct-orange {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .ct-hero {
    box-shadow: none;
    border-bottom: 2px solid #000;
  }
  
  .ct-branch-card,
  .ct-form-container,
  .ct-map-container {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .ct-breadcrumb {
    display: none;
  }
}
