.contact-section {
    padding: 90px 40px;
    background: #ffffff;
}

.contact-container {
    max-width: 900px;
    width: 95%;
    margin: 40px auto;
    align-items: start;
}

.contact-form h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-subtext {
    font-size: 15px;
    color: #555;
    margin-bottom: 35px;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

input,
select {
    width: 100%;
    padding: 10px 0;
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 1px solid #aaa;
    font-size: 16px;
    /* Fix for consistent look across browsers, especially on mobiles */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

select {
    /* Optional: Add a subtle down arrow for select elements */
    background-image: linear-gradient(45deg, transparent 50%, #555 50%),
                      linear-gradient(135deg, #555 50%, transparent 50%);
    background-position: right 15px top 50%, right 10px top 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px; /* Space for the custom arrow */
}


/* Styling for when the form elements are focused */
input:focus,
select:focus {
    border-bottom: 1.6px solid skyblue;
}

.input-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: inline-block;
}

/* Dynamic line underline */
.line {
    display: block;
    height: 2px;
    width: 0;
    background: skyblue;
    transition: 0.3s ease;
}

/* Line animation on focus */
input:focus + .line,
select:focus + .line {
    width: 100%;
}

.contact-btn {
    width: 100%;
    padding: 14px;
    background: skyblue;
    color: white;
    font-size: 17px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-btn:hover {
    transform: scale(1.01); /* Slightly reduced scale for smoother effect */
    background: #0094d8;
}

/* Contact Info Styling */
.contact-info {
    background: #f8faff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    /* Ensure info section is fully visible even if form is tall */
    height: fit-content; 
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px 0;
}

.contact-info li {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-info li a {
    color: #555; /* Match text color */
    text-decoration: none;
}
.contact-info li a:hover {
    text-decoration: underline;
    color: skyblue;
}


.contact-socials {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    font-size: 24px;
    color: #555;
    transition: 0.3s;
    text-decoration: none;
}
.social-icon:hover {
    transform: scale(1.1);
    color: skyblue;
}

.calendly-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 16px;
    color: skyblue;
    text-decoration: none; /* Removed default underline */
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}
.calendly-link:hover {
    border-bottom: 2px solid skyblue;
}

.thank-you {
    margin-top: 20px;
    color: green;
    font-size: 16px;
    font-weight: bold;
}

.hidden {
    display: none !important; 
}

.input-error {
    border-bottom: 1.6px solid red !important;
    transition: 0.3s ease;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
}

@media (max-width: 500px) {
    .contact-section {
        padding: 50px 20px; 
    }
    .contact-form h2 {
        font-size: 28px;
    }
    .contact-info {
        padding: 25px;
    }
}

#scheduleModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 10px;
  z-index: 10;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  background: skyblue;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.modal-btn:hover {
  background: #0094d8;
}

.hidden {
  display: none !important;
}
