/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    text-align: center;
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#leadForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
}

/* Make specific elements full width */
#leadForm input[type="hidden"],
#leadForm label:first-child,
#leadForm input[name="arrived_date"],
#leadForm label:nth-child(3),
#leadForm input[name="fname"],
#leadForm label:nth-child(5),
#leadForm input[name="lname"],
#leadForm label:nth-child(7),
#leadForm input[name="email"],
#leadForm label:nth-child(9),
#leadForm input[name="phone"],
#leadForm label:nth-child(11),
#leadForm input[name="case_type"],
#leadForm label:nth-child(13),
#leadForm input[name="zipcode"],
#leadForm label:nth-child(15),
#leadForm input[name="incident_date"],
#leadForm .Send {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
}

input, select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
}

/* Add icons using pseudo-elements */
#leadForm label[for="arrivedAt"]::before { content: "🕒"; }
#leadForm label[for="deal"]::before { content: "🆔"; }
#leadForm label[for="leadFirstName"]::before { content: "👤"; }
#leadForm label[for="leadLastName"]::before { content: "📝"; }
#leadForm label[for="leadEmail"]::before { content: "📧"; }
#leadForm label[for="leadPhone"]::before { content: "📞"; }
#leadForm label[for="caseType"]::before { content: "📄"; }
#leadForm label[for="zipCode"]::before { content: "📍"; }
#leadForm label[for="incidentDate"]::before { content: "📅"; }
#leadForm label[for="injuryCause"]::before { content: "🚗"; }
#leadForm label[for="wereYouInjured"]::before { content: "🤕"; }
#leadForm label[for="wereAtFault"]::before { content: "⚖️"; }
#leadForm label[for="haveAttorney"]::before { content: "⚖️"; }
#leadForm label[for="doctorTreatment"]::before { content: "🏥"; }

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input:hover, select:hover {
    border-color: #cbd5e0;
}

.Send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    grid-column: 1 / -1;
}

.Send:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.Send:active {
    transform: translateY(-1px);
}

/* Validation error styling */
.validation-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

/* Modal styling */
#front-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-heading {
    color: #38a169;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Animation for form elements */
#leadForm label {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

#leadForm input, #leadForm select {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Clean prominent consent box */
.consent-notice {
  grid-column: 1 / -1;
  text-align: center;
  margin: 25px 0;
  padding: 25px 30px;
  background: #fff8f8;
  border: 2px solid #fed7d7;
  border-left: 5px solid #fc8181;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #2d3748;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

/* Exclamation mark in red circle at the start */
.consent-notice::before {
  /* content: "⚠"; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #fc8181;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Text container */
.consent-notice .consent-text {
  text-align: left;
  flex: 1;
}

.consent-notice strong {
  color: #742a2a;
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.consent-notice span {
  display: block;
  color: #4a5568;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .consent-notice {
    padding: 20px;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .consent-notice::before {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .consent-notice .consent-text {
    text-align: left;
  }
}

/* Stagger animations for form elements */
#leadForm > *:nth-child(1) { animation-delay: 0.1s; }
#leadForm > *:nth-child(2) { animation-delay: 0.2s; }
#leadForm > *:nth-child(3) { animation-delay: 0.3s; }
#leadForm > *:nth-child(4) { animation-delay: 0.4s; }
#leadForm > *:nth-child(5) { animation-delay: 0.5s; }
#leadForm > *:nth-child(6) { animation-delay: 0.6s; }
#leadForm > *:nth-child(7) { animation-delay: 0.7s; }
#leadForm > *:nth-child(8) { animation-delay: 0.8s; }
#leadForm > *:nth-child(9) { animation-delay: 0.9s; }
#leadForm > *:nth-child(10) { animation-delay: 1.0s; }
#leadForm > *:nth-child(11) { animation-delay: 1.1s; }
#leadForm > *:nth-child(12) { animation-delay: 1.2s; }
#leadForm > *:nth-child(13) { animation-delay: 1.3s; }
#leadForm > *:nth-child(14) { animation-delay: 1.4s; }
#leadForm > *:nth-child(15) { animation-delay: 1.5s; }
#leadForm > *:nth-child(16) { animation-delay: 1.6s; }
#leadForm > *:nth-child(17) { animation-delay: 1.7s; }
#leadForm > *:nth-child(18) { animation-delay: 1.8s; }
#leadForm > *:nth-child(19) { animation-delay: 1.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    #leadForm {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .container {
        padding: 30px 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    input, select {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .Send {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Loading state for button */
.Send.loading {
    position: relative;
    color: transparent;
}

.Send.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}