/* CMC Training Queries – Public Form Styles */

.cmc-tq-wrapper {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Form header banner ─────────────────────────────────────────────────── */
.cmc-tq-form-header {
    position: relative;
    background: linear-gradient(135deg, #0d2d57 0%, #1a4a7a 50%, #1e6091 100%);
    border-radius: 12px 12px 0 0;
    padding: 0;
    overflow: hidden;
}

/* Decorative background circles */
.cmc-tq-header-bg-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cmc-tq-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.cmc-tq-circle-1 {
    width: 260px; height: 260px;
    top: -80px; right: -60px;
}
.cmc-tq-circle-2 {
    width: 160px; height: 160px;
    bottom: -50px; left: -40px;
    background: rgba(255,255,255,.04);
}
.cmc-tq-circle-3 {
    width: 80px; height: 80px;
    top: 20px; left: 15%;
    background: rgba(255,255,255,.05);
}

/* Inner layout */
.cmc-tq-form-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 28px 36px;
}

/* Logo */
.cmc-tq-header-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    padding: 10px 14px;
}
.cmc-tq-header-logo {
    height: 62px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Vertical divider */
.cmc-tq-header-divider {
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,.25);
    margin: 0 28px;
    flex-shrink: 0;
}

/* Text block */
.cmc-tq-header-text {
    flex: 1;
}
.cmc-tq-header-text h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cmc-tq-header-institution {
    color: rgba(255,255,255,.75);
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: .2px;
    line-height: 1.4;
}
.cmc-tq-header-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #e8f2ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Bottom accent line */
.cmc-tq-form-header::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7 0%, #81d4fa 40%, #b3e5fc 70%, #4fc3f7 100%);
}

/* Responsive */
@media (max-width: 600px) {
    .cmc-tq-form-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 14px;
    }
    .cmc-tq-header-divider { display: none; }
    .cmc-tq-header-logo { height: 48px; }
    .cmc-tq-header-text h2 { font-size: 17px; }
    .cmc-tq-circle-1 { width: 160px; height: 160px; top: -40px; right: -30px; }
}

#cmc-tq-form {
    background: #fff;
    border: 1px solid #dce6f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 36px 36px 32px;
    box-shadow: 0 4px 24px rgba(26,74,122,.10);
}

.cmc-tq-row {
    margin-bottom: 20px;
}

.cmc-tq-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .cmc-tq-row-2 { grid-template-columns: 1fr; gap: 0; }
    #cmc-tq-form { padding: 20px; }
}

.cmc-tq-field { display: flex; flex-direction: column; gap: 5px; }

.cmc-tq-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a4a7a;
    letter-spacing: .2px;
}

.cmc-tq-field .req { color: #c0392b; margin-left: 2px; }

.cmc-tq-field input,
.cmc-tq-field select,
.cmc-tq-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #c8d8ef;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafcff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}

.cmc-tq-field input:focus,
.cmc-tq-field select:focus,
.cmc-tq-field textarea:focus {
    outline: none;
    border-color: #1a4a7a;
    box-shadow: 0 0 0 3px rgba(26,74,122,.12);
    background: #fff;
}

.cmc-tq-field input.cmc-tq-invalid,
.cmc-tq-field select.cmc-tq-invalid,
.cmc-tq-field textarea.cmc-tq-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.cmc-tq-field textarea { resize: vertical; min-height: 110px; }

/* Error message */
.cmc-tq-error {
    background: #fdf0ee;
    border: 1px solid #e8b4ae;
    border-radius: 6px;
    color: #a00;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Success message */
.cmc-tq-success {
    background: #eaf7ee;
    border: 1px solid #a8d8b2;
    border-radius: 8px;
    color: #155724;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Submit button */
.cmc-tq-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

#cmc-tq-submit {
    background: #1a4a7a;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .3px;
}

#cmc-tq-submit:hover:not(:disabled) { background: #0d2d57; transform: translateY(-1px); }
#cmc-tq-submit:disabled { opacity: .65; cursor: not-allowed; }

.cmc-tq-note {
    font-size: 12px;
    color: #777;
    margin: 0;
}
