.wp-block-button .wp-element-button:hover,
.wp-block-button>.has-base-2-background-color:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Main container for the form */
.custom-form-container {
    max-width: 600px;
    /* Adjust max-width as needed */
    margin: 0 auto;
    /* Centers the form */
    color: #fff;
}

/* Styles for each row of the form */
.custom-form-container .form-row {
    display: flex;
    gap: 20px;
    /* Space between fields */
    margin-bottom: 20px;
}

/* Columns inside a row */
.custom-form-container .form-col {
    flex: 1;
    /* Equal width for name + email */
}

/* Make sure inputs stretch inside columns */
.custom-form-container .form-col .wpcf7-form-control-wrap {
    width: 100%;
}

/* Make sure the wrapper spans the full width */
.custom-form-container .form-row .wpcf7-form-control-wrap {
    width: 100%;
}

/* General styling for text, email, and textarea inputs */
.custom-form-container input[type="text"],
.custom-form-container input[type="email"],
.custom-form-container textarea {
    width: 100%;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 10px;
    /* Rounded corners */
    font-size: 20px;
    box-sizing: border-box;
    /* Important for padding and width */
    background: transparent;
    outline: none;
    font-family: Montserrat, sans-serif !important;
}

/* Specific styling for the textarea */
.custom-form-container textarea {
    height: 130px;
    /* Adjust height as needed */
    resize: vertical;
    /* Allow vertical resizing */
    padding-top: 20px;
}

.custom-form-container input::placeholder,
.custom-form-container textarea::placeholder {
    color: #fff;
    text-transform: capitalize;
}

/* Styling for the submit button */
.custom-form-container input[type="submit"] {
    background-color: #fff;
    font-family: Montserrat, sans-serif !important;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

/* Hover effect for the button */
.custom-form-container input[type="submit"]:hover {
    background-color: #1A3C3B;
    color: #fff;
}

.custom-form-container .cf7-disabled {
    opacity: 1 !important;
}

/* Remove default paragraph tags that CF7 adds to clean up spacing */
.wpcf7-form p {
    margin: 0;
}

.wpcf7-form p.question {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.wpcf7-response-output {
    color: #fff;
}

/* continue shopping btn */
a.continue-shopping-btn {
    display: flex;
    margin-bottom: 20px;
    background: rgb(26, 60, 59);
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    width: 250px;
    margin-left: auto;
    justify-content: center;
}

a.continue-shopping-btn:hover {
    background: #000;
}

/* shop now btn animation */
.direct-checkout {
    position: relative;
    display: inline-block;
    margin: 50px;
}

.direct-checkout a {
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.direct-checkout:hover a {
    padding-right: 70px !important;
}

/* Spinner container */
.direct-checkout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(70% + 20px);
    width: 4px;
    height: 4px;
    transform: translateY(-50%);
    display: none;
    z-index: 2;
}

/* Show spinner on hover */
.direct-checkout:hover::before {
    display: block;
    animation: rotateSpinner 1s linear infinite;
}

/* Create the 8 bars using box-shadow trick */
.direct-checkout::before {
    box-shadow:
        0 -8px 0 0 white,
        5.6px -5.6px 0 0 rgba(255, 255, 255, 0.8),
        8px 0 0 0 rgba(255, 255, 255, 0.6),
        5.6px 5.6px 0 0 rgba(255, 255, 255, 0.4),
        0 8px 0 0 rgba(255, 255, 255, 0.3),
        -5.6px 5.6px 0 0 rgba(255, 255, 255, 0.2),
        -8px 0 0 0 rgba(255, 255, 255, 0.2),
        -5.6px -5.6px 0 0 rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Spinner rotation */
@keyframes rotateSpinner {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 480px) {
    .custom-form-container .form-row {
        gap: 10px;
    }

    .wpcf7-form p.question {
        font-size: 16px;
    }

    .custom-form-container input[type="text"],
    .custom-form-container input[type="email"],
    .custom-form-container textarea {
        font-size: 16px;        
    }
}

@media (max-width: 400px) {
    .custom-form-container input[type="text"],
    .custom-form-container input[type="email"],
    .custom-form-container textarea,
    .wpcf7-form p.question {
        font-size: 14px;
        padding-left: 15px;
        padding-right: 10px;
    }
}