/* JMD Citas — Frontend */
.jmd-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}
.jmd-form-intro { margin-bottom: 24px; }
.jmd-form-intro h2 { color: #182434; margin-bottom: 10px; }
.jmd-form-intro p { color: #555; line-height: 1.6; }
.jmd-precio-info {
    background: #f3f0eb;
    padding: 12px 18px;
    border-radius: 6px;
    border-left: 4px solid #CBA557;
    margin-top: 10px;
}

/* Trust Signals */
.jmd-trust-signals {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.jmd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f0eb;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.88em;
    color: #182434;
    font-weight: 500;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}
.jmd-trust-icon { font-size: 1.1em; }
@media (max-width: 600px) {
    .jmd-trust-signals { flex-direction: column; gap: 8px; }
    .jmd-trust-item { justify-content: flex-start; }
}

/* Grid */
.jmd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) {
    .jmd-form-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Fields */
.jmd-field { margin-bottom: 20px; }
.jmd-field label {
    display: block;
    font-weight: 600;
    color: #182434;
    margin-bottom: 6px;
    font-size: 0.95em;
}
.jmd-field .required { color: #CBA557; }
.jmd-field input[type="text"],
.jmd-field input[type="email"],
.jmd-field input[type="tel"],
.jmd-field select,
.jmd-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.jmd-field input:focus,
.jmd-field select:focus,
.jmd-field textarea:focus {
    border-color: #CBA557;
    outline: none;
    box-shadow: 0 0 0 3px rgba(203,165,87,0.15);
}
.jmd-field textarea { resize: vertical; }

/* Error states */
.jmd-field.has-error input,
.jmd-field.has-error select,
.jmd-field.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
.jmd-field .jmd-error-msg {
    color: #dc3545;
    font-size: 0.82em;
    margin-top: 4px;
    display: none;
}
.jmd-field.has-error .jmd-error-msg { display: block; }

/* Dropzone */
.jmd-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.jmd-dropzone:hover,
.jmd-dropzone.dragover {
    border-color: #CBA557;
    background: rgba(203,165,87,0.05);
}
.jmd-dropzone-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.jmd-dropzone p { margin: 0; color: #666; }
.jmd-dropzone small { color: #999; }

/* File list */
.jmd-file-list { margin-top: 10px; }
.jmd-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 14px;
}
.jmd-file-item .jmd-file-name { color: #333; }
.jmd-file-item .jmd-file-size { color: #999; font-size: 12px; margin-left: 10px; }
.jmd-file-item .jmd-file-remove {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

/* Checkboxes */
.jmd-checkboxes { margin-top: 10px; }
.jmd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88em;
    line-height: 1.5;
    cursor: pointer;
}
.jmd-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #CBA557;
}
.jmd-checkbox a { color: #CBA557; }

/* Viernes grid */
.jmd-viernes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 600px) {
    .jmd-viernes-grid { grid-template-columns: repeat(2, 1fr); }
}
.jmd-viernes-option input { display: none; }
.jmd-viernes-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.jmd-viernes-card strong { font-size: 24px; color: #182434; }
.jmd-viernes-card small { color: #666; margin-top: 2px; text-transform: capitalize; }
.jmd-viernes-option input:checked + .jmd-viernes-card {
    border-color: #CBA557;
    background: rgba(203,165,87,0.08);
    transform: scale(1.02);
}
.jmd-viernes-card:hover { border-color: #CBA557; }

/* Rango grid */
.jmd-rango-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 600px) {
    .jmd-rango-grid { grid-template-columns: repeat(2, 1fr); }
}
.jmd-rango-option input { display: none; }
.jmd-rango-card {
    display: block;
    text-align: center;
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #182434;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.jmd-rango-option input:checked + .jmd-rango-card {
    border-color: #CBA557;
    background: rgba(203,165,87,0.08);
    transform: scale(1.02);
}
.jmd-rango-card:hover { border-color: #CBA557; }

/* Submit */
.jmd-form-submit { margin-top: 25px; text-align: center; }
.jmd-btn {
    display: inline-block;
    background: #CBA557;
    color: #182434;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    position: relative;
}
.jmd-btn:hover { background: #b8943e; transform: translateY(-1px); }
.jmd-btn:active { transform: translateY(0); }
.jmd-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.jmd-btn.is-loading .jmd-btn-text { visibility: hidden; }
.jmd-btn.is-loading .jmd-btn-loading { display: inline-block !important; }
.jmd-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    top: 50%; left: 50%;
    margin-top: -9px; margin-left: -40px;
    border: 2px solid rgba(24,36,52,0.3);
    border-top-color: #182434;
    border-radius: 50%;
    animation: jmd-spin 0.6s linear infinite;
}
@keyframes jmd-spin { to { transform: rotate(360deg); } }

.jmd-btn-outline {
    background: transparent;
    border: 2px solid #CBA557;
    color: #CBA557;
}
.jmd-btn-outline:hover { background: rgba(203,165,87,0.1); }

.jmd-form-status {
    margin-top: 15px;
    font-size: 14px;
    padding: 0;
    border-radius: 6px;
    transition: all 0.3s;
}
.jmd-form-status.success {
    color: #155724;
    background: #d4edda;
    padding: 12px 18px;
    border: 1px solid #c3e6cb;
}
.jmd-form-status.error {
    color: #721c24;
    background: #f8d7da;
    padding: 12px 18px;
    border: 1px solid #f5c6cb;
}

.jmd-form-note {
    text-align: center;
    color: #888;
    font-size: 0.85em;
    margin-top: 15px;
}

/* Pago confirmado */
.jmd-pago-ok { text-align: center; padding: 40px 0; }
.jmd-pago-ok-icon {
    width: 80px; height: 80px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: jmd-pop 0.4s ease-out;
}
@keyframes jmd-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.jmd-pago-ok h2 { color: #155724; }
.jmd-pago-ok-info {
    background: #f3f0eb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.jmd-pago-ok-info h3 { margin-top: 0; color: #182434; font-size: 1em; }
.jmd-pago-ok-info p { margin: 6px 0; font-size: 0.93em; color: #333; }

.jmd-pago-ok-steps {
    background: #fff;
    border: 1px solid #e0dcd5;
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.jmd-pago-ok-steps h3 { margin-top: 0; color: #182434; font-size: 1em; }
.jmd-pago-ok-steps ol {
    padding-left: 20px;
    margin: 10px 0 0;
}
.jmd-pago-ok-steps li {
    margin-bottom: 8px;
    font-size: 0.93em;
    color: #333;
    line-height: 1.5;
}
.jmd-pago-ok-contact {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}
.jmd-pago-ok-contact a { color: #CBA557; }

/* Hide redundant WP page titles on plugin pages */
.page-id-544 .section__label,
.page-id-544 .section__title,
.page-id-545 .section__label,
.page-id-545 .section__title,
.page-id-546 .section__label,
.page-id-546 .section__title {
    display: none;
}


/* Tipo cliente toggle */
.jmd-tipo-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.jmd-tipo-option input[type="radio"] { display:none; }
.jmd-tipo-card { display:block; border:2px solid #e8e5e0; border-radius:6px; padding:14px 16px; cursor:pointer; text-align:center; transition:border-color .2s, background .2s; }
.jmd-tipo-card strong { display:block; color:#182434; font-size:1em; margin-bottom:4px; }
.jmd-tipo-card small { display:block; color:#888; font-size:0.8em; line-height:1.3; }
.jmd-tipo-option input[type="radio"]:checked + .jmd-tipo-card { border-color:#CBA557; background:#faf8f3; }
@media (max-width:480px) { .jmd-tipo-grid { grid-template-columns:1fr; } }
