/* CSS Document */
/* ================================
   QuickForm2 + CKEditor 4
   STABLE, ROBUST LAYOUT
   ================================ */

/* Center the form */
.quickform form {
    max-width: 1000px;
    margin: 40px auto;
}

/* One row */
.quickform .row {
    margin-bottom: 18px;
    overflow: visible; /* important for CKEditor UI */
}

/* Required star */
.required {
    color: red;
}

/* Label on the left */
.quickform .label {
    float: left;
    width: 160px;
    font-weight: bold;
    padding-top: 6px;
    margin: 0;
}

/* Field area */
.quickform .element {
    margin-left: 180px;
}

/* Clear floats */
.quickform::after {
    content: "";
    display: block;
    clear: both;
}

/* Inputs baseline */
.quickform textarea,
.quickform input,
.quickform select {
    width: 100%;
    box-sizing: border-box;
}

/* Date select spacing (group) */
.quickform .element.group select {
    width: auto;
    display: inline-block;
}

/* Submit button row: no label */
.quickform .row:last-child .label {
    display: none;
}

/* Typography helpers */
.text-small {
    font-size: 0.85em;
}

.text-large {
    font-size: 1.25em;
}

/* ================================
   CKEditor 4 (DO NOT FIGHT IT)
   ================================ */

.cke {
    width: 100% !important;
}

.cke_panel,
.cke_combopanel {
    z-index: 3000;
}

/* ================================
   Validation errors (QuickForm2)
   ================================ */

/* Error message list */
.quickform ul.errors {
    margin: 4px 0 0 180px;
    padding: 0;
    list-style: none;
    color: #c00;
    font-size: 0.9em;
}
.quickform .element.error input {
    border: 2px solid #c00;
    background-color: #fff5f5;
}
/* Error text */
.quickform .error {
    color: #c00;
    font-weight: bold;
}

/* === KLÍČOVÉ: zvýraznění CELÉHO pole === */
.quickform .element.error {
    border: 2px solid #c00;
    background-color: #fff5f5;
    padding: 6px;
    border-radius: 4px;
}

/* Inputs uvnitř error – bez vlastního borderu */

/*
.quickform .element.error input,
.quickform .element.error textarea,
.quickform .element.error select {
    border: none;
    background: transparent;
}
*/




/* CKEditor error */
.quickform .element.error .cke {
    border: 2px solid #c00 !important;
    box-shadow: 0 0 4px rgba(200,0,0,0.4);
}

/* ================================
   Required note
   ================================ */

.quickform .reqnote {
    display: block;
    margin: 20px 0;
    clear: both;
    font-size: 0.9em;
}