.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form .form-field br {
    display: none;
}

.wpcf7-form .form-field {
    position: relative;
}
 
.wpcf7-form .input-field {
    height: 56px;
    transition: all 200ms ease-in-out;
}
 
.wpcf7-form .input-field:has(input[aria-invalid="true"]){
    margin-bottom: 24px;
}


.wpcf7-form textarea,
.wpcf7-form input {
    color: var(--gra-900, #212121);
    font-size: 16px;
    line-height: 24px;
    font-weight: normal;
    border-radius: 8px;
    border: 1px solid var(--gray-700);
    display: block;
    padding: 16px;
    width: 100%;
    
}
.wpcf7-form textarea:focus ,
.wpcf7-form input:focus  {
    border: 1px solid var(--purple)
}

.wpcf7-form label {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--gray-600, #929293);
    z-index: 100;
    transform: translate(16px, 16px);
    transition: all 200ms ease-in-out;
}

/* Cambiar color del borde del input al enfocar */


.wpcf7-form-control-wrap:has(input:focus)~label,
.wpcf7-form-control-wrap:has(input:not(:placeholder-shown))~label {
    transform: translate(16px, 8px);
    color: var(--purple);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.wpcf7-form-control-wrap:has(input:not(:placeholder-shown)) input {
    padding-top: 20px;
    padding-bottom: 12px;
}

.wpcf7-form-control-wrap:has(textarea:focus)~label,
.wpcf7-form-control-wrap:has(textarea:not(:placeholder-shown))~label {
    transform: translate(16px, 8px);
    color: var(--purple);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.wpcf7-form-control-wrap:has(textarea:focus) textarea,
.wpcf7-form-control-wrap:has(textarea:not(:placeholder-shown)) textarea {
    padding-top: 20px;
    padding-bottom: 12px;
}

.wpcf7-form-control-wrap:has(.wpcf7-not-valid) input,
.wpcf7-form-control-wrap:has(.wpcf7-not-valid) textarea {
    border-color: var(--red, #DB0000)!important;
}

.wpcf7-form-control-wrap:has(.wpcf7-not-valid)~label {
    color: var(--red, #DB0000)!important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
}

.wpcf7-not-valid-tip::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.54081 7.17433C5.48639 3.72478 6.45918 2 7.99967 2C9.54017 2 10.513 3.72477 12.4585 7.17432L12.701 7.60418C14.3177 10.4707 15.1261 11.904 14.3955 12.952C13.6649 14 11.8573 14 8.24211 14H7.75723C4.14205 14 2.33446 14 1.60385 12.952C0.873236 11.904 1.68162 10.4707 3.29838 7.60418L3.54081 7.17433Z' stroke='%23DB0000' stroke-width='1.5'/%3E%3Cpath d='M8 5.33334V8.66667' stroke='%23DB0000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='7.99967' cy='10.6667' r='0.666667' fill='%23DB0000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}


.cf7-custom-btn {
    background-color: var(--lilac);
    color: var(--black);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 6px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    float: right;
    white-space: nowrap;
    transition: all 200ms ease-in-out;
    width: fit-content;
}

.cf7-custom-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-900);
    border-radius: 10px;
    transition: background 0.3s ease;
    color: var(--white);
    margin-left: 12px;
    padding: 6px;
}

.cf7-custom-btn:hover, .cf7-custom-btn:focus {
    color: var(--black);
}

.cf7-custom-btn:hover {
    padding-left: 20px;
    padding-right: 10px;
}

.cf7-custom-btn:hover .btn-icon {
    transform: scale(1.1);
}

.wpcf7 form .wpcf7-spinner {
    position: absolute;
    margin-top: 10px;
}



.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.newsletter-form input {
    border-radius: 12px;
    background: var(--white);
}
.newsletter-form .btn {
    width: 100%;
}
.newsletter-form .btn-icon {
    background: var(--almond);
    color: var(--gray-900);
    padding: 6px;
    border-radius: 10px;
    
}
