﻿
.xcontainer {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="datetime-local"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

textarea {
    height: 100px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Modal contacto (sin depender de bootstrap.Modal JS) */
.contact-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: rgba(26, 32, 44, 0.5);
}

#modal_mensaje.modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1055 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: transparent !important;
    padding: 0 1rem;
}

#modal_mensaje.modal.show {
    display: block !important;
}

#modal_mensaje .modal-dialog {
    position: relative;
    max-width: 26rem;
    margin: 1.75rem auto;
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
    pointer-events: none;
}

#modal_mensaje .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 !important;
    max-width: none;
    pointer-events: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    background-color: #fff;
}

#modal_mensaje.is-success .modal-content {
    border-top: 4px solid #2e7d32;
}

#modal_mensaje.is-error .modal-content {
    border-top: 4px solid #c62828;
}

#modal_mensaje .modal-title {
    font-weight: 700;
    color: #810B0B;
}

#modal_mensaje.is-success .modal-title {
    color: #1b5e20;
}

#modal_mensaje.is-error .modal-title {
    color: #b71c1c;
}

#modal_mensaje .modal-body {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
}

#modal_mensaje .btn-contact-ok {
    background-color: #810B0B;
    border-color: #810B0B;
    min-width: 7.5rem;
    font-weight: 600;
}

#modal_mensaje .btn-contact-ok:hover,
#modal_mensaje .btn-contact-ok:focus {
    background-color: #6a0909;
    border-color: #6a0909;
}

#modal_mensaje.is-error .btn-contact-ok {
    background-color: #5c5c5c;
    border-color: #5c5c5c;
}

#modal_mensaje.is-error .btn-contact-ok:hover,
#modal_mensaje.is-error .btn-contact-ok:focus {
    background-color: #444;
    border-color: #444;
}
