/* Flash Messages */

/* ==== TEXT SELECTION COLOR ==== */
::selection {
  background-color: #ff8c00;
  /* نارنجی */
  color: white;
}

::-moz-selection {
  background-color: #ff8c00;
  /* نارنجی برای فایرفاکس */
  color: white;
}

/* ==== end TEXT SELECTION COLOR ==== */
.flash-messages {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: auto;
}

.flash-message {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.5s ease;
  border-right: 4px solid;
  min-width: 300px;
  transition: all 0.3s ease;
}

.flash-message:hover {
  transform: translateX(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.flash-success {
  border-right-color: #48bb78;
  color: #2f855a;
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.flash-error {
  border-right-color: #f56565;
  color: #c53030;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.flash-message .material-icons {
  font-size: 1.25rem;
}

.flash-message.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

/* ==== Contact Section ==== */
.contact-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 71, 161, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 202, 40, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #267099;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}



.contact-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: #37474f;
  max-width: 600px;
  margin: 0 auto;
}

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

/* Contact Info Cards */
.contact-info {
  display: grid;
  gap: 24px;
}

.info-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(13, 71, 161, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 71, 161, 0.05);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13, 71, 161, 0.15);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon .material-icons {
  font-size: 28px;
  color: white;
}

.info-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #267099;
  margin-bottom: 8px;
}

.info-text p {
  font-size: 15px;
  color: #546e7a;
  line-height: 1.6;
  margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(13, 71, 161, 0.12);
  border: 1px solid rgba(13, 71, 161, 0.08);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: #267099;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.contact-form h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffca28, #ffc107);
  border-radius: 2px;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.custom-select-trigger:hover {
  border-color: #0d47a1;
  background: white;
}

.custom-select-trigger.active {
  border-color: #0d47a1;
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

.selected-text {
  font-size: 15px;
  color: #37474f;
  font-family: inherit;
}

.arrow-icon {
  font-size: 20px;
  color: #546e7a;
  transition: transform 0.3s ease;
}

.custom-select-trigger.active .arrow-icon {
  transform: rotate(180deg);
  color: #0d47a1;
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(13, 71, 161, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

.custom-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 300px;
  overflow-y: auto;
}

.custom-option {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: linear-gradient(90deg, rgba(13, 71, 161, 0.05) 0%, rgba(25, 118, 210, 0.03) 100%);
  padding-right: 24px;
}

.custom-option.selected {
  background: linear-gradient(90deg, rgba(13, 71, 161, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
  color: #0d47a1;
  font-weight: 500;
}

.custom-option.selected::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
}

.option-icon {
  font-size: 20px;
  color: #546e7a;
  transition: all 0.2s ease;
}

.custom-option:hover .option-icon {
  color: #0d47a1;
  transform: scale(1.1);
}

.custom-option.selected .option-icon {
  color: #0d47a1;
}

.option-text {
  font-size: 15px;
  color: #37474f;
  font-family: inherit;
  flex: 1;
}

.custom-option.selected .option-text {
  color: #0d47a1;
  font-weight: 500;
}

/* Scrollbar styling for custom options */
.custom-options::-webkit-scrollbar {
  width: 6px;
}

.custom-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #37474f;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  font-size: 15px;
  color: #37474f;
  background: #fafbfc;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0d47a1;
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

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

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
}

.submit-btn .material-icons {
  font-size: 20px;
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  animation: slideInUp 0.5s ease;
}

.success-message .material-icons {
  font-size: 24px;
}

.success-message p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-section {
    padding: 80px 0 60px;
  }

  .contact-header h2 {
    font-size: 32px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .info-card {
    padding: 20px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
  }

  .info-icon .material-icons {
    font-size: 24px;
  }

  .contact-form-wrapper {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .contact-section {
    padding: 60px 0 40px;
  }

  .contact-header {
    margin-bottom: 40px;
    margin-top: 10px;
  }

  .contact-header h2 {
    font-size: 28px;
  }

  .contact-subtitle {
    font-size: 15px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 16px;
  }

  .info-text h3 {
    font-size: 16px;
  }

  .info-text p {
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 12px 14px;
  }

  .submit-btn {
    font-size: 15px;
    padding: 14px 20px;
  }

  /* Flash Messages Responsive */
  .flash-messages {
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    top: 80px;
  }

  .flash-message {
    min-width: auto;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0 16px;
  }

  .contact-header h2 {
    font-size: 24px;
  }

  .contact-header h2::after {
    width: 40px;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    min-width: 90%;
    max-width: 90%;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .success-message {
    flex-direction: column;
    text-align: center;
  }
}