input:hover, textarea:hover {
    background-color: #2d3748; /* Slightly lighter gray for hover */
    border-color: #4fd1c5; /* Cyan border */
    transition: background-color 0.3s, border-color 0.3s;
}
  
button:enabled:hover {
    background-color: #ffae00; /* Brighter blue */
    transition: background-color 0.3s;
}


/* below is placed the submit button styling. */

.cta {
    position: relative;
    margin: auto;
    padding: 12px 24px; /* Increased padding for consistent size */
    transition: all 0.2s ease;
    border: 3px solid #847e8f;
    border-radius: 50px;
    background: #444346;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Add spacing between text and SVG */
    overflow: hidden; /* Prevent pseudo-element overflow */
    min-width: 160px; /* Ensures a consistent width */
    height: 50px; /* Fixes button height */
    box-sizing: border-box; /* Includes padding and border in size */
}

.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* Ensure it starts at the left for consistent animation */
    border-radius: 50px;
    background: white;
    width: 0%; /* Start small for hover animation */
    height: 100%; /* Matches button height */
    transition: all 0.8s ease;
    z-index: 1; /* Places it behind text and icon */
}

.cta span {
    position: relative;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    color: white;
    font-weight: 500; /* Slightly bolder text for better visibility */
    letter-spacing: 0.05em;
    z-index: 2; /* Ensures text stays above the :before element */
}

.cta svg {
    position: relative;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: white;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: transform 0.5s ease;
    z-index: 2; /* Keeps SVG above the :before element */
}

.cta:hover:before {
    width: 100%; /* Expands to cover the button on hover */
    background: #1c1c1c; /* Darker background on hover */
}

.cta:hover svg {
    transform: translateX(0); /* Moves SVG into place */
}

.cta:active {
    transform: scale(0.95); /* Shrinks slightly on click */
    transition: transform 0.2s ease;
}

  