/* Contact Page Styles */

/* Page Header */
.page-header {
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 20px;
  margin-bottom: 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.contact-method-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-method-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.2);
}

.contact-method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-method-card:hover::before {
  left: 100%;
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-method-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-method-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-time {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* Contact Form */
.contact-form-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.contact-form .form-label i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--input-bg);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
  color: var(--text-primary);
}

.contact-form .form-control.is-invalid {
  border-color: var(--danger-color);
}

.contact-form .invalid-feedback {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-form .form-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: right;
}

.contact-form .form-check-input {
  border: 2px solid var(--border-color);
  background: var(--input-bg);
}

.contact-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-form .form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.contact-form .btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

/* FAQ Section */
.faq-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
}

.accordion-item {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px !important;
  margin-bottom: 1rem;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-button {
  background: var(--card-bg);
  color: var(--text-primary);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: var(--surface-color);
  color: var(--text-secondary);
  padding: 1.5rem;
  border-radius: 0 0 8px 8px;
  line-height: 1.6;
}

/* Sidebar Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: none;
}

.card-header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 12px 12px 0 0;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* Company Info */
.company-info .info-item {
  margin-bottom: 1rem;
}

.company-info .info-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.company-info .info-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--hover-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-link i {
  font-size: 1.25rem;
  width: 30px;
  margin-right: 0.75rem;
}

.social-link[data-platform="telegram"] i {
  color: #0088cc;
}

.social-link[data-platform="twitter"] i {
  color: #1da1f2;
}

.social-link[data-platform="instagram"] i {
  color: #e4405f;
}

.social-link[data-platform="youtube"] i {
  color: #ff0000;
}

/* Business Hours */
.business-hours .hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.business-hours .hours-item:last-child {
  border-bottom: none;
}

.business-hours .day {
  font-weight: 600;
  color: var(--text-primary);
}

.business-hours .time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.business-hours .hours-note {
  background: var(--info-light);
  color: var(--info-color);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Response Times */
.response-times .response-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.response-times .response-item:last-child {
  border-bottom: none;
}

.response-times .response-method {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-weight: 500;
}

.response-times .response-method i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.response-times .response-time .time {
  background: var(--success-light);
  color: var(--success-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Live Chat Widget */
.live-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 400px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h6 {
  margin: 0;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 280px;
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-message.user {
  text-align: right;
}

.chat-message.user .message-content {
  background: var(--primary-color);
  color: white;
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 15px 15px 5px 15px;
  max-width: 80%;
}

.chat-message.support .message-content {
  background: var(--surface-color);
  color: var(--text-primary);
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 15px 15px 15px 5px;
  max-width: 80%;
}

.chat-message .message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chat-message.user .message-time {
  text-align: right;
}

.typing-indicator .typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-indicator .typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator .typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  background: var(--input-bg);
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chat-input button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* Info Colors */
.info-light {
  background-color: rgba(var(--info-rgb), 0.1);
}

.success-light {
  background-color: rgba(var(--success-rgb), 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .contact-method-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  .contact-form-section,
  .faq-section {
    padding: 1.5rem;
  }

  .contact-form .form-control,
  .contact-form .form-select {
    padding: 0.6rem 0.8rem;
  }

  .contact-form .btn-primary {
    padding: 0.8rem 1.5rem;
  }

  .chat-window {
    width: 280px;
    height: 350px;
    bottom: 70px;
    right: -10px;
  }

  .chat-messages {
    max-height: 220px;
  }

  .live-chat-widget {
    bottom: 15px;
    right: 15px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 40px 0;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .contact-method-card {
    padding: 1rem;
  }

  .contact-icon {
    font-size: 2rem;
  }

  .contact-form-section,
  .faq-section {
    padding: 1rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    padding: 0.6rem 0.8rem;
  }

  .chat-window {
    width: 250px;
    height: 300px;
    right: -20px;
  }

  .chat-messages {
    max-height: 180px;
    padding: 0.75rem;
  }

  .chat-input {
    padding: 0.75rem;
  }

  .chat-input input {
    padding: 0.4rem 0.8rem;
  }

  .chat-input button {
    width: 35px;
    height: 35px;
  }
}
