/* KC Client Testimonials — Frontend styles */

/* Requested starter rule */
.form-group {
    display: grid;
    margin-bottom: 1.5em;
}

/* ==========================================
   Live Preview (appears above the form)
   ========================================== */
.kcct-preview {
    background: #2f6fa6; /* calm blue similar to the sample */
    color: #fff;
    text-align: center;
    padding: 2.25rem 1.25rem;
    border-radius: 12px;
    margin: 0 0 2rem;
}

.kcct-preview-quote {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 auto 1.75rem;
    font-style: italic;
}

.kcct-preview-avatars {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.kcct-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.15);
    position: relative;
    display: grid;
    place-items: center;
}

.kcct-avatar.is-main { box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.kcct-avatar-img { display: none; width: 100%; height: 100%; object-fit: cover; }
.kcct-avatar.has-image .kcct-avatar-img { display: block; }
.kcct-avatar.has-image .kcct-avatar-initials { display: none; }

.kcct-avatar-initials {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .95;
}

.kcct-preview-name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kcct-preview-meta {
    opacity: .85;
    margin-top: .15rem;
}

/* ==========================================
   Messages (Bootstrap-like alerts)
   ========================================== */
.kcct-messages { margin: 0 0 1rem; }
.kcct-alert {
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: .875rem 1rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-weight: 500;
    text-align: center;
}
.kcct-alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.kcct-alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.kcct-alert ul { list-style: none; padding: 0; margin: 0; }

/* Two-column layout helpers (Bootstrap-like) */
.kcct-form .row {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* space between columns on small screens */
}

.kcct-form .kcct-note {
    margin-bottom: 1.5em;
}

.kcct-form .kcct-error {
    color: #e60122;
}

.kcct-form .col-md-6 {
    box-sizing: border-box;
    width: 100%; /* stack on small screens */
}

/* At medium viewports and up, place first/last name side-by-side */
@media (min-width: 768px) {
    /* Add outer padding so columns don't hug the sidebar/content edges */
    .kcct-form { padding-left: 1.25rem; padding-right: 1.25rem; }

    /* Switch from gap to gutter padding for nicer edge spacing */
    .kcct-form .row { gap: 0; margin-left: -0.5rem; margin-right: -0.5rem; }
    .kcct-form .col-md-6 { width: 50%; padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* Make inputs stretch to column width */
.kcct-form .form-input,
.kcct-form .form-textarea {
    width: 100%;
}

/* Ensure the overall form has some breathing room on all screens */
.kcct-form { padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; }

/* You can expand styles below as needed
.form-input { }
.form-textarea { }
.form-actions { }
*/
