/* ========================================
   CONTACT SECTION - COMPACT REDESIGN
   ======================================== */

#contact {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #F8F7FF 0%, #F0EBFF 50%, #EEF2FF 100%);
  overflow: hidden;
}

/* Decorative Background Blobs */
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 63, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact-wrapper::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(75, 200, 192, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.contact-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6B3FA8;
  margin-bottom: 12px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.contact-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #5B6B7E;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Wrapper */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Form Card - Premium Glassmorphism */
.contact-form-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 
    0 20px 60px rgba(107, 63, 168, 0.15),
    0 8px 32px rgba(107, 63, 168, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 63, 168, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-form-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(75, 200, 192, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-form {
  position: relative;
  z-index: 1;
}

/* Form Row - 2 Column Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

/* Form Group */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(107, 63, 168, 0.15);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #1A1A2E;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(107, 63, 168, 0.06);
}

/* Disable browser validation popups */
.form-input:invalid {
  box-shadow: none;
}

.form-input::placeholder {
  color: transparent;
}

.form-input:hover {
  border-color: rgba(107, 63, 168, 0.25);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(107, 63, 168, 0.1);
}

.form-input:focus {
  border-color: #6B3FA8;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 0 3px rgba(107, 63, 168, 0.15),
    0 6px 20px rgba(107, 63, 168, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Floating Label */
.form-label {
  position: absolute;
  top: 17px;
  left: 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.8) 50%);
  padding: 0 6px;
  margin-left: -6px;
}

.form-input:hover + .form-label {
  color: #4B5563;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input:valid + .form-label {
  transform: translateY(-32px) scale(0.85);
  color: #6B3FA8;
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 50%, rgba(248, 247, 255, 0.9) 50%);
}

/* Select Dropdown */
select.form-input {
  cursor: pointer;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.8);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  color: #1A1A2E;
}

/* Suppress browser validation styling */
select.form-input:invalid {
  box-shadow: 0 2px 8px rgba(107, 63, 168, 0.06);
  border-color: rgba(107, 63, 168, 0.15);
}

select.form-input:hover {
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 4px 12px rgba(107, 63, 168, 0.1);
  background-repeat: no-repeat;
  background-position: right 18px center;
}

select.form-input:invalid:hover {
  border-color: rgba(107, 63, 168, 0.25);
  box-shadow: 0 4px 12px rgba(107, 63, 168, 0.1);
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Always float label for select elements */
select.form-input + .form-label {
  transform: translateY(-32px) scale(0.85);
  color: #6B3FA8;
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 50%, rgba(248, 247, 255, 0.9) 50%);
}

/* Always float label for textarea with placeholder */
textarea.form-input[placeholder]:not([placeholder=""]) + .form-label {
  transform: translateY(-32px) scale(0.85);
  color: #6B3FA8;
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 50%, rgba(248, 247, 255, 0.9) 50%);
}

/* Placeholder styling for textarea */
textarea.form-input::placeholder {
  color: #9CA3AF;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  opacity: 1;
}

textarea.form-input:focus::placeholder {
  color: #B8BCC4;
}

select.form-input option {
  background: #FFFFFF;
  color: #1A1A2E;
  padding: 12px;
  font-family: var(--font-body);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 
    0 8px 20px rgba(244, 118, 42, 0.28),
    0 3px 8px rgba(244, 118, 42, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 28px rgba(244, 118, 42, 0.36),
    0 5px 12px rgba(244, 118, 42, 0.24);
}

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

/* Contact Info Bar - Horizontal Layout */
.contact-info-bar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
  box-shadow: 
    0 12px 32px rgba(107, 63, 168, 0.12),
    0 4px 16px rgba(107, 63, 168, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Contact Info Item */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Contact Info Icon */
.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F4762A 0%, #FF8A50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(244, 118, 42, 0.25);
}

.contact-info-icon svg {
  color: #FFFFFF;
}

/* Contact Info Text */
.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
}

.contact-info-link,
.contact-info-value {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-info-link:hover {
  color: #6B3FA8;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  #contact {
    padding: 100px 0;
  }
  
  .contact-header {
    margin-bottom: 40px;
  }
  
  .contact-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  
  .contact-form-card {
    padding: 36px;
  }
  
  .contact-info-bar {
    padding: 24px 28px;
    gap: 28px;
  }
  
  .form-row {
    gap: 18px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #contact {
    padding: 72px 0;
  }
  
  .contact-header {
    margin-bottom: 32px;
  }
  
  .contact-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  
  .contact-subtext {
    font-size: 15px;
  }
  
  .contact-form-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-input {
    padding: 16px;
    min-height: 50px;
    font-size: 15px;
    border-radius: 10px;
  }
  
  .form-label {
    font-size: 15px;
    top: 16px;
    left: 16px;
  }
  
  .form-input:focus + .form-label,
  .form-input:not(:placeholder-shown) + .form-label,
  .form-input:valid + .form-label {
    transform: translateY(-30px) scale(0.85);
  }
  
  select.form-input {
    background-position: right 16px center;
  }
  
  .btn-submit {
    min-height: 52px;
    height: auto;
    padding: 16px 24px;
    font-size: 15px;
  }
  
  .contact-info-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 14px;
  }
  
  .contact-info-item {
    gap: 12px;
  }
  
  .contact-info-icon {
    width: 38px;
    height: 38px;
  }
  
  .contact-info-link,
  .contact-info-value {
    font-size: 15px;
  }
}
