/* CTA Section */
.cta-section {
    background: white;

    color: var(--ap-text-light);

    margin: 0 auto;
}
.wrapper-cta{
    background-color: var(--ap-secondary);
    border-radius: 35px;
    padding: 60px 40px;
}

.cta-form .form-control,
.cta-form .form-select,
.cta-form .btn {
    border-radius: 30px; /* Increased border-radius */
    padding: 15px 25px; /* Increased padding */
    font-size: 1.1rem;
}

.cta-form .form-control::placeholder {
    color: var(--ap-primary);
}

.home-form-container {
    background-color: #0A2D4D;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    max-width: 1100px; /* Adjust max-width as needed */
    margin: auto;
    text-align: center; /* Center align title and subtitle */
}

.home-form-container .wpcf7-form {
    color: #fff;
}

.home-form-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #fff;
}

.home-form-container p {
    font-size: 1rem;
    margin: 0 0 30px 0;
    color: #fff;
}

.home-form-container .home-form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 15px;
}

.home-form-container .wpcf7-form-control:not([type="submit"]) {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid #E0E0E0;
    background-color: #FDFBF5;
    color: var(--ap-primary);
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.home-form-container .wpcf7-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%230A2D4D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 25px center;
}

.home-form-container input::placeholder,
.home-form-container select,
.home-form-container textarea::placeholder {
    color: var(--ap-primary);
    font-weight: 400;
    text-align: center;
}

/* Custom File Upload */
.home-form-container .file-wrapper .wpcf7-form-control-wrap {
    display: block;
}

.home-form-container .custom-file-upload {
    display: block;
    position: relative;
    cursor: pointer;
}

.home-form-container .custom-file-upload .wpcf7-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.home-form-container .custom-file-upload .file-icon-text {
    display: flex;
    align-items: center;
    justify-content: center; /* Center text in file input */
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid #E0E0E0;
    background-color: #FDFBF5;
    color: var(--ap-primary);
    font-size: 1rem;
    box-sizing: border-box;
}

.home-form-container .custom-file-upload .file-icon-text svg {
    margin-right: 10px;
    fill: var(--ap-primary);
}

.home-form-container .wpcf7-submit {
    width: 100%; /* Full width on mobile */
    padding: 15px 10px;
    border-radius: 30px;
    border: none;
    background-color: #DAB982;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.home-form-container input,
.home-form-container select,
.home-form-container .file-icon-text,
.home-form-container textarea,
.home-form-container .wpcf7-submit
{
    outline: 1px solid white;
    outline-offset: 5px;
}

.home-form-container .wpcf7-submit:hover {
    background-color: #c8a870;
}


/* Desktop Layout */
@media (min-width: 992px) { /* Using a breakpoint for large screens */
    .home-form-container .home-form-grid {
        grid-template-columns: repeat(3, 253px);
        gap: 20px;
        justify-content: center;

    }
    .home-form-container .wpcf7-submit {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}
