/*--------------------------------------------------------------
# Contact Section - Premium Modern Design
--------------------------------------------------------------*/

/* Section Base */
.contact {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(71, 178, 228, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(55, 81, 126, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Contact Info Cards */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-card {
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(71, 178, 228, 0.3);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(71, 178, 228, 0.4);
}

.contact-card-icon i {
  font-size: 26px;
  color: #fff;
}

.contact-card-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #37517e;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.contact-card-content p,
.contact-card-content a {
  font-size: 15px;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.contact-card-content a {
  text-decoration: none;
  font-weight: 500;
}

.contact-card-content a:hover {
  color: #47b2e4;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  padding: 50px;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.form-header {
  margin-bottom: 35px;
}

.form-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #37517e;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.form-header p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

/* Form Styles */
.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #37517e;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.contact-form label .required {
  color: #ff6b6b;
  margin-left: 2px;
}

.contact-form .form-control {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  color: #333;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form .form-control::placeholder {
  color: #94a3b8;
}

.contact-form .form-control:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.contact-form .form-control:focus {
  border-color: #47b2e4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(71, 178, 228, 0.15);
}

.contact-form select.form-control {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 45px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px 18px;
}

.contact-form select.form-control:focus {
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347b2e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px 18px;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  color: #fff;
  padding: 18px 45px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 35px rgba(71, 178, 228, 0.35);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-submit:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(71, 178, 228, 0.45);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  transform: translateY(-2px);
}

.btn-submit i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-submit:hover i {
  transform: translateX(5px);
}

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

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: 0 10px 35px rgba(71, 178, 228, 0.35);
}

/*--------------------------------------------------------------
# Form Status Messages
--------------------------------------------------------------*/
.form-status {
  margin-bottom: 20px;
}

.status-sending,
.status-sent,
.status-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

/* Sending State */
.status-sending {
  background: rgba(71, 178, 228, 0.1);
  border: 1px solid rgba(71, 178, 228, 0.2);
  color: #47b2e4;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(71, 178, 228, 0.3);
  border-top-color: #47b2e4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success State */
.status-sent {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.status-sent i {
  font-size: 22px;
  color: #22c55e;
}

/* Error State */
.status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.status-error i {
  font-size: 22px;
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-form-wrapper {
    padding: 40px;
    margin-top: 20px;
  }

  .contact-info-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 0;
  }

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

  .form-header h3 {
    font-size: 24px;
  }

  .contact-card {
    flex: 1 1 100%;
  }

  .btn-submit {
    padding: 16px 35px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .contact-card-icon i {
    font-size: 22px;
  }

  .contact-form .form-control {
    padding: 12px 16px;
  }
}

/* Legacy Support - Keep old styles for any remaining elements */
.contact .info {
  border-top: 3px solid #47b2e4;
  border-bottom: 3px solid #47b2e4;
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.1);
}

.contact .info i {
  font-size: 20px;
  color: #47b2e4;
  float: left;
  width: 44px;
  height: 44px;
  background: #e7f5fb;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #37517e;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6182ba;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}