/* Contact Hero Section */
.contact-hero {
  background: var(--primary-gradient);
  color: white;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.contact-hero .hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero .hero-text {
  flex: 1;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
  max-width: 600px;
}

.contact-hero .hero-image {
  flex: 1;
  position: relative;
}

.contact-hero .hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: perspective(800px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.contact-hero .hero-image img:hover {
  transform: perspective(800px) rotateY(0);
}

.contact-hero .glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  animation: glowMove 15s ease-in-out infinite alternate;
}

@keyframes glowMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(5%, 5%);
  }
}

.gradient-text {
  background: linear-gradient(45deg, #ffb74a 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Success Hero Styles */
.contact-hero.success-hero {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  padding: 20px 20px;
}

.success-content {
  flex-direction: column;
  text-align: center;
  max-width: 900px !important;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
}

.success-icon:before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message-text {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.response-times {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.response-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: left;
}

.response-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.response-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.response-info p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

.animated-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.element-1 {
  top: 20%;
  left: 15%;
  animation-name: float1;
}

.element-2 {
  top: 60%;
  left: 75%;
  animation-name: float2;
}

.element-3 {
  top: 30%;
  left: 85%;
  animation-name: float3;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(50px, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-80px, 40px) rotate(-90deg);
  }
  50% {
    transform: translate(-40px, -80px) rotate(-180deg);
  }
  75% {
    transform: translate(40px, -40px) rotate(-270deg);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-70px, 70px) scale(1.2);
  }
}

/* Error Banner */
.error-banner {
  background-color: #f8d7da;
  padding: 15px 0;
  margin-bottom: 30px;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #721c24;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.error-message-text {
  flex: 1;
}

/* After-submission content styles */
.subtle-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.after-submit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.resource-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.resource-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.resource-text p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.submit-another {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.submit-another h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Contact Form Styles */
.contact-section {
  padding: 100px 20px;
  background-color: var(--background-color);
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-option {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  border-top: 4px solid transparent;
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-option.active {
  border-top-color: var(--primary-color);
  background-color: var(--card-background);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.option-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.option-description {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-tab {
  display: none;
}

.form-tab.active {
  display: block;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 123, 255, 0.1);
  outline: none;
}

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

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  padding: 12px 30px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(74, 123, 255, 0.2);
}

.form-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 10px rgba(74, 123, 255, 0.3);
}

.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* File upload styling */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 15px;
  background-color: #f5f5f5;
  color: var(--text-color);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.file-upload-label:hover {
  background-color: #e9ecef;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Success message */
.success-message {
  background-color: #d4edda;
  color: #155724;
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
  display: none;
}

/* Error message */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
  display: none;
}

/* Response indicators */
.response-time {
  margin-top: 30px;
  text-align: center;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
}

.response-time h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 15px;
  }
  
  .contact-form-container {
    padding: 25px;
  }
  
  .contact-option {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 20px 15px;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
}
