/* Estilos para el formulario paso a paso */
.wpcf7-form canvas {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    height: 150px;
}

@media (max-width: 600px) {
    .wpcf7-form canvas {
        max-width: 100%;
        height: 100px;
    }
}

.add-child-container {
    text-align: right;
    margin-bottom: 40px;
}

.wpcf7-form input[type="date"],
.wpcf7-form select {
    font-size: 14px;
    background-color: rgb(0 0 0 / .04);
    border-radius: 4px;
    border: 2px solid #fff0;
    padding: 10px;
    width: 100%;
    line-height: 24px;
    color: #555;
    transition: all .2s ease;
}

.wpcf7-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.wpcf7-form .remove-child {
    margin: auto 0;
    color: #bb0000;
    cursor: pointer;
}

.tfa-step {
    margin-bottom: 20px;
}

.tfa-step h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.tfa-prev, .tfa-next, #add-child, #clear-signature, input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.tfa-prev:hover, .tfa-next:hover, #add-child:hover, #clear-signature:hover, input[type="submit"]:hover {
    background-color: #005177;
}

#tfa-message {
    margin-top: 20px;
    color: #d63638;
}

/* Estilos para el popup */
#tfa-rules-popup {
    padding-top: 80px;
}

.tfa-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.tfa-popup-content {
    background: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tfa-popup-content ul {
    margin-left: 15px
}

.tfa-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.tfa-popup-close:hover {
    color: #bb0000;
}

#tfa-rules-content {
    max-height: 500px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .tfa-popup-content {
        margin: 10% 5%;
        padding: 30px;
    }
    #tfa-rules-content {
        max-height: 400px;
    }
}