
/* Form Section */
.contact-style1 {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-style1 h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.contact-style1 p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Form Input Styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.contact-form .form-error {
    color: red;
    font-size: 12px;
}

/* Button Styling */
.btn-submit {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container.road {
        padding: 10px;
    }

    .service-widget-contact,
    .contact-style1 {
        margin-bottom: 20px;
        text-align: center;
    }

    .contact-style1 h2,
    .service-widget-contact h2 {
        font-size: 20px;
    }

    .contact-style1 p,
    .service-widget-contact p {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .btn-submit {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .row .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-widget-contact ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-widget-contact ul li i {
        margin-bottom: 5px;
    }

    .btn-submit {
        padding: 10px 15px;
    }
}


/* Error Styling */
.form-error {
    color: red;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Error Visible State */
.form-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shake animation for invalid inputs */
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.is-invalid {
    animation: shake 0.3s ease;
    border-color: red;
}


/* Success Message Animation */
.success-message {
    display: none;
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSuccess 0.5s ease-in-out forwards;
}

@keyframes fadeInSuccess {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Smooth Fade In for Form */
.contact-style1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}









.card {
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    top: 50px;
  }
  
  .card h3 {
    font-weight: bold;
    color: #333;
  }
  
  /* Input Fields */
  .form-control {
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  
  .form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
  }
  
  /* Buttons */
  .btn-primary {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
  }
  
  /* Links */
  a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 500;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Transition Animations */
  .d-none {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
  }
  
  .d-block {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
  }


  h3{
    position: relative;
    font-size: large;
    padding: 20px;
  }



  /* Responsive Design */
@media (max-width: 768px) {
    .card {
      padding: 15px;
      max-width: 90%;
    }
  
    .banner-text h1 {
      font-size: 2rem;
    }
  
    .banner-text ul li {
      font-size: 0.9rem;
    }
  }