
:root {
    /* Brand / Primary */
    --cif-color-primary: #164b7a;
    --cif-color-primary-hover: #0f3a61;

    /* Panels & Backgrounds */
    --cif-color-panel: #dfeef7;

    /* Accent / Active */
    --cif-color-accent: #cfeecf;
    --cif-color-accent-soft: rgba(207, 238, 207, 0.35);

    /* Text */
    --cif-color-text: #000;
}

#custom-inquiry-form hr {
    border: solid #fff;
    border-width: 1px 0 0;
    margin: 10px 0 10px;
}

#top #custom-inquiry-form input {
    margin-bottom: 0;
}

.cif-panel {
    background: var(--cif-color-panel);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 14px;
}


#cif-form .cif-panel select {
    margin-top: 8px;
    margin-bottom: 0;
    width: 82%;
    color: var(--cif-color-text);
}

.cif-section {
    margin-top: 34px;
}

.cif-h3 {
    color: #184b7a;
    font-size: 32px;
    margin: 0 0 14px 0;
}

.cif-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cif-checkbox-card {
    background: var(--cif-color-panel);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 10px;
}

.cif-method-row {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
}

.cif-method-btn {
    flex: 0 0 auto;        /* ⬅ nicht schrumpfen */
    white-space: nowrap;  /* ⬅ Button bleibt einzeilig */
    border: 2px solid #3b6ea5;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.cif-method-btn.active {
    background: var(--cif-color-accent);
}

.cif-method-analytes {
    flex: 1 1 auto;  /* ⬅ nimmt restlichen Platz */
    min-width: 0;    /* ⬅ ERLAUBT UMBRUCH (sehr wichtig!) */
    background: #e0e5e8;
    padding: 5px 16px;
    border-radius: 999px;
}
.cif-method-analytes.active {
    background: var(--cif-color-accent);
}

.cif-method-analytes span {
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--cif-color-text);
}

.cif-extra {
    background: var(--cif-color-accent);
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
    display: inline-block;
}

.cif-error {
    color: #b00020;
    margin-top: 0;
    font-size: 12px;
}

.cif-method-top {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
}

.cif-add-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #9ac4e8;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.cif-add-btn.active {
    background: #164b7a;
}

/* Modal */
.cif-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding-bottom: 60px;
}

.cif-modal {
    width: min(400px, 92vw);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 0;
}

.cif-modal.grid3 {
    width: min(800px, 92vw);
}

.cif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.cif-modal-title {
    font-weight: 700;
}

.cif-modal-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.cif-modal-body {
    padding: 28px 32px;
}

.cif-modal-list.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cif-modal-list.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cif-modal-item {
    background: #dfeef7;
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cif-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.cif-modal-footer button {
    color: black;
}
.cif-modal-footer button.cif-primary {
    color: #fff;
}

.cif-btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

/* Button rechts unten wie “Weiter/Hinzufügen” */
.cif-primary {
    background: var(--cif-color-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
}

.cif-primary:hover {
    opacity: 0.95;
}


.cif-method-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-top: 14px;
    gap: 14px;
}

.cif-extra-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
   /* padding: 6px 12px;*/
    border-radius: 999px;
    gap: 8px;
    align-items: center;
}

.cif-extra-chip {
    background: var(--cif-color-accent);
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
    color: #000;
}

.cif-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cif-chip {
    background: #164b7a;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.cif-chip.cif-chip--single {
    background: #2268a7;
}

.cif-chip-x {
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 700;
}


/* Success Modal */
.cif-success-modal {
    width: min(640px, 92vw);
    border-radius: 12px;
    overflow: hidden;
}
.cif-success-modal .cif-modal-body {
    padding: 22px 22px 10px;
}
.cif-success-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.15;
    color: var(--cif-color-primary, #164b7a);
    font-weight: 700;
}
.cif-success-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--cif-color-text, #12344d);
    max-width: 52ch;
}
.cif-success-modal .cif-modal-footer {
    padding: 14px 22px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.cif-success-modal .cif-btn,
.cif-success-modal .cif-primary {
    padding: 10px 16px;
}

/** Datenschutzerklärung */
.cif-checkbox-line {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    align-items: flex-start;
}

.cif-checkbox-line input {
    margin-top: 3px;
}