/*-- -------------------------- -->
<---           Form             -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #form {
    padding: 3.125em 0;
    margin: auto;
    position: relative;
    padding-bottom: 36%;
  }
  #form .top-wave {
    position: absolute;
    width: 100%;
    top: -0.125em;
    height: auto;
    left: 0;
  }
  #form .title {
    font-weight: 900;
    font-size: min(9vw, 2.4em);
    line-height: 1.20833333;
    color: #1A1A1A;
    position: relative;
    margin-bottom: 0.875em;
    text-align: left;
  }
  #form p {
    line-height: 1.5;
    max-width: 27.77777778em;
    color: #595959;
    margin-bottom: 2.66666667em;
  }
  #form .left-section {
    width: 96%;
    margin: auto;
    margin-top: 15%;
    max-width: 37.5em;
  }
  #form #contact {
    margin: auto;
    margin-bottom: 6.25em;
  }
  #form #contact .input-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-bottom: 1.875em;
  }
  #form #contact .input-group label {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 0.375em;
  }
  #form #contact .input-group input[type="text"],
  #form #contact .input-group input[type="email"],
  #form #contact .input-group input[type="tel"],
  #form #contact .input-group input[type="url"],
  #form #contact .input-group textarea,
  #form #contact .input-group select {
    font-size: 1em;
    height: 4.1875em;
    border: none;
    border-bottom: 0.0625em solid #d4d4d4;
    background: transparent;
  }
  #form #contact .input-group input:focus {
    border: 0.0625em solid var(--primary);
  }
  
  #form #contact .input-group select:focus {
    border: 0.0625em solid var(--primary);
  }
  
  #form #contact .input-group textarea {
    min-height: 12.5em;
    padding-top: 1.25em;
  }
  
  /* Select dropdown styling */
  #form #contact .input-group select {
    cursor: pointer;
    padding-right: 2em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  #form #contact .input-group select:focus {
    outline: none;
    border-bottom: 0.0625em solid var(--primary);
  }
  
  #form #contact .input-group select option {
    background: white;
    color: var(--bodyText);
    padding: 0.5em;
  }
  #form #contact .input-group ::-webkit-input-placeholder {
    color: #d4d4d4;
    font-family: "Roboto", sans-serif;
  }
  #form #contact .input-group :-ms-input-placeholder {
    color: #d4d4d4;
    font-family: "Roboto", sans-serif;
  }
  #form #contact .input-group ::-ms-input-placeholder {
    color: #d4d4d4;
    font-family: "Roboto", sans-serif;
  }
  #form #contact .input-group ::placeholder {
    color: #d4d4d4;
    font-family: "Roboto", sans-serif;
  }
  #form #contact .button-solid {
    border: none;
  }
  #form .contact-right {
    background: #1a1a1a;
    padding: 2.8125em 2.125em;
    width: 100%;
    max-width: 18.75em;
    margin: auto;
    border-radius: 0.3125em;
  }
  #form .contact-right .heading {
    color: #fff;
    font-size: 1.5em;
    line-height: 1.2em;
    font-weight: bold;
    padding-left: 0.83333333em;
    border-left: 0.20833333em solid var(--primary);
    display: block;
    margin-bottom: 0.83333333em;
  }
  #form .contact-right .info-group {
    margin-bottom: 2.25em;
  }
  #form .contact-right .info-group:last-of-type {
    margin-bottom: 0;
  }
  #form .contact-right .info {
    font-size: 1em;
    line-height: 1.75;
    color: #fff;
    opacity: .9;
    text-decoration: none;
    display: block;
  }
}
/* Mobile Landscape */
@media only screen and (min-width: 568px) {
  #form #contact {
    max-width: 43.75em;
  }
  #form .contact-right {
    max-width: 43.75em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  #form .contact-right .info-group {
    width: 40%;
    margin-left: 3.125em;
  }
  #form .contact-right .info-group:nth-of-type(3) {
    margin-bottom: 0;
  }
}
/* Tablet */
@media only screen and (min-width: 48em) {
  #form #contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  #form #contact .input-group {
    width: 48%;
    margin-bottom: 3.125em;
    position: relative;
  }
  #form #contact .input-group:nth-of-type(5) {
    width: 100%;
  }
  #form #contact .input-group:last-of-type {
    width: 100%;
  }
  #form #contact .input-group:hover .hover-box {
    height: 4.1875em;
    border: 0.0625em solid var(--primary);
    pointer-events: none;
  }
  #form #contact .input-group:hover input[type="text"],
  #form #contact .input-group:hover input[type="email"],
  #form #contact .input-group:hover input[type="tel"],
  #form #contact .input-group:hover input[type="url"],
  #form #contact .input-group:hover textarea,
  #form #contact .input-group:hover select {
    padding-left: 1.25em;
  }
  #form #contact .input-group input[type="text"],
  #form #contact .input-group input[type="email"],
  #form #contact .input-group input[type="tel"],
  #form #contact .input-group input[type="url"],
  #form #contact .input-group textarea {
    border-bottom: none;
    position: relative;
    -webkit-transition: padding .3s;
    transition: padding .3s;
    background: transparent;
  }
  #form #contact .input-group .hover-box {
    position: absolute;
    display: block;
    height: 0.0625em;
    width: 100%;
    background: transparent;
    border: 0.0625em solid #e9e8e8;
    opacity: 1;
    bottom: -0.0625em;
    left: 0;
    z-index: 10;
    -webkit-transition: height .3s, border .3s;
    transition: height .3s, border .3s;
    z-index: -1;
  }
  #form #contact .textarea:hover .hover-box {
    height: 10.5em;
  }
  #form #contact .form-submit {
    margin-left: auto;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-line-pack: start;
        align-content: flex-start;
    font-size: 1.5vw;
    width: 100%;
    padding: 9.375em 0;
  }
  #form .left-section {
    width: 46.875em;
    margin: 0;
    margin-left: 0;
    margin-right: 4.6875em;
  }
  #form #contact {
    margin: 0;
    margin-right: 0;
    max-width: none;
  }
  #form .contact-right {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    max-width: 18.75em;
    margin: 0;
    height: 34.625em;
  }
  #form .contact-right .info-group {
    margin-left: 0;
    width: 100%;
  }
  #form .contact-right .info-group:nth-of-type(3),
  #form .contact-right .info-group:last-of-type {
    margin-bottom: 2.25em;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #form {
    font-size: inherit;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0px) {
  body.dark-mode #form .title {
    color: #fff;
  }
  body.dark-mode #form p {
    color: #fff;
  }
  body.dark-mode #form .input-group label {
    color: #fff;
  }
  body.dark-mode #form .input-group input,
  body.dark-mode #form .input-group textarea,
  body.dark-mode #form .input-group select {
    color: #fff;
  }
  body.dark-mode #form .contact-right {
    background: var(--medium);
  }
}

/* Honeypot field - hide from users */
.hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Thank You Page Styles */
.thank-you-section {
    padding: 4em 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.checkmark {
    margin-bottom: 2em;
    animation: bounceIn 0.8s ease-out;
}

.checkmark svg {
    filter: drop-shadow(0 4px 8px rgba(128, 0, 32, 0.3));
}

.thank-you-content h1 {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 0.5em;
    font-weight: 900;
}

.thank-you-content h2 {
    font-size: 1.5em;
    color: var(--bodyText);
    margin-bottom: 1.5em;
    font-weight: 400;
}

.thank-you-content .message {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--bodyText);
    margin-bottom: 2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2em auto;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.next-steps h3 {
    color: var(--primary);
    margin-bottom: 1em;
    font-size: 1.3em;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5em 0;
    position: relative;
    padding-left: 1.5em;
    color: var(--bodyText);
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1em;
}

.contact-info {
    background: var(--primary);
    color: white;
    padding: 1.5em;
    border-radius: 10px;
    margin-bottom: 2em;
}

.contact-info p {
    margin: 0.5em 0;
}

.contact-info a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.contact-info a:hover {
    color: #f0f0f0;
}

.action-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .button-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-buttons .button-outline:hover {
    background: var(--primary);
    color: white;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media only screen and (max-width: 48em) {
    .thank-you-content {
        padding: 1.5em;
        margin: 1em;
    }
    
    .thank-you-content h1 {
        font-size: 2.5em;
    }
    
    .thank-you-content h2 {
        font-size: 1.3em;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media only screen and (max-width: 32em) {
    .thank-you-content h1 {
        font-size: 2em;
    }
    
    .thank-you-content .message {
        font-size: 1.1em;
    }
    
    .next-steps {
        padding: 1em;
    }
}
