/* Contact Section Code */

.contact form{
    max-width: 80rem;
    margin: 1rem auto;
}

.contact{
    background: var(--bg-color);
}

.contact h2{
    margin-bottom:3rem ;
    color: var(--main-color);
}

.contact h2:hover, .contact .heading span:hover{
    margin-bottom:3rem ;
    color: white;
    cursor: pointer;
}

.contact form{
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.input-box{
    display: flex;
    justify-content: center;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input{
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.input-box input{
   flex: 1;
   min-width: 250px;
   gap:15px;
   
}



.contact form .btn{
    margin-top: 2rem;
}

.bxl-whatsapp{
    font-size: 35px;
    padding: 10px;
}

.btn:hover{
    transform: scale(1.2) translateY(-10px);
  
    
}

.whembtn{
    display: flex;
    gap: 20px;
    justify-content: CENTER;
}

/* Error Styling */

.error {
    border: 1px solid var(--main-color);
    animation: shake 0.3s;
}

.error-message{
    flex-basis: 100%;
    color: var(--main-color);
    font-size: 12px;
    margin-top: 2px ;
}

.field {
  display: flex;
  flex-direction: column; /* stack input + error vertically */
  flex: 1;                /* equal width for all fields */
}


.success-message {
    margin-top: 10px;
    padding: 10px 15px;
    background: #e6ffed;
    color: #1a7f37;
    border: 1px solid #2ecc71;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    transition: all 0.3s ease;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Shake animation  */

@keyframes shake {
    0%  {transform:  translateX(0);}
    25% {transform: translateX(-5px);}
    50% {transform: translateX(5px);}
    75% {transform: translateX(0);}
}

