/* InnHealth Registro Diario — estilos del formulario */

.ihrd-card {
    --ihrd-blue: #315A99;
    --ihrd-blue-dark: #24447A;
    --ihrd-border: #d8dee9;
    --ihrd-bg: #ffffff;
    --ihrd-text: #1f2937;

    max-width: 720px;
    margin: 0 auto;
    background: var(--ihrd-bg);
    border: 1px solid var(--ihrd-border);
    border-radius: 12px;
    padding: 28px;
    color: var(--ihrd-text);
    box-shadow: 0 2px 12px rgba(49, 90, 153, 0.08);
    font-family: inherit;
}

.ihrd-header {
    border-left: 4px solid var(--ihrd-blue);
    padding-left: 14px;
    margin-bottom: 24px;
}

.ihrd-header h3 {
    margin: 0 0 4px;
    color: var(--ihrd-blue);
    font-size: 1.35rem;
}

.ihrd-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.ihrd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ihrd-row {
        grid-template-columns: 1fr;
    }
}

.ihrd-field {
    margin-bottom: 16px;
}

.ihrd-field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--ihrd-text);
}

.ihrd-req {
    color: #b32d2e;
}

.ihrd-field input,
.ihrd-field select,
.ihrd-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--ihrd-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fbfcfe;
    color: var(--ihrd-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ihrd-field input:focus,
.ihrd-field select:focus,
.ihrd-field textarea:focus {
    outline: none;
    border-color: var(--ihrd-blue);
    box-shadow: 0 0 0 3px rgba(49, 90, 153, 0.15);
}

.ihrd-submit {
    display: inline-block;
    background: var(--ihrd-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ihrd-submit:hover:not(:disabled) {
    background: var(--ihrd-blue-dark);
}

.ihrd-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ihrd-message {
    margin-top: 14px;
    padding: 0;
    font-size: 0.92rem;
    display: none;
    border-radius: 8px;
}

.ihrd-message.ihrd-success {
    display: block;
    padding: 12px 14px;
    background: #ecf7ef;
    color: #1a7a3a;
    border: 1px solid #bfe3c9;
}

.ihrd-message.ihrd-error {
    display: block;
    padding: 12px 14px;
    background: #fdf0f0;
    color: #b32d2e;
    border: 1px solid #f0c4c4;
}
