/* =====================================================
   KUAYNI CONTACT FORM — Frontend Styles
   Desarrollado por Kuayni Perú en colaboración con la IA
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.kcf-wrapper {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    max-width: 960px;
    margin: 0 auto;
}

/* ——— FORM SIDE ——— */
.kcf-form-side {
    flex: 1;
    padding: 44px 40px 40px;
    min-width: 0;
}

.kcf-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f2850;
    margin: 0 0 8px;
    line-height: 1.2;
}

.kcf-form-header p {
    font-size: 14px;
    color: #6b7a99;
    margin: 0 0 30px;
}

.kcf-row { margin-bottom: 18px; }
.kcf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kcf-field-group { display: flex; flex-direction: column; }
.kcf-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5578;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}

.kcf-field-group input,
.kcf-field-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e5f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a2540;
    background: #f8f9fc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.kcf-field-group input::placeholder,
.kcf-field-group textarea::placeholder { color: #b0bac9; }

.kcf-field-group input:focus,
.kcf-field-group textarea:focus {
    border-color: #1a5bbf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,91,191,.12);
}

.kcf-field-group input.kcf-invalid,
.kcf-field-group textarea.kcf-invalid {
    border-color: #e63946;
    background: #fff8f8;
}

.kcf-error {
    font-size: 11px;
    color: #e63946;
    min-height: 16px;
    display: block;
    margin-top: 4px;
}

.kcf-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.kcf-feedback {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    flex: 1;
}
.kcf-feedback.success { background: #eaf6ef; color: #1a7f4b; }
.kcf-feedback.error   { background: #fef0f0; color: #c0392b; }

.kcf-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f2850;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
    margin-left: auto;
}

.kcf-btn-submit:hover {
    background: #1a3f7a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,40,80,.25);
}

.kcf-btn-submit:active { transform: translateY(0); }
.kcf-btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.kcf-btn-submit .kcf-btn-icon svg {
    transition: transform .2s;
}
.kcf-btn-submit:hover .kcf-btn-icon svg { transform: translateX(3px); }

/* ——— SIDEBAR ——— */
.kcf-sidebar {
    width: 280px;
    background: linear-gradient(160deg, #0f2850 0%, #1a3f7a 60%, #0d3370 100%);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.kcf-sidebar-inner {
    padding: 44px 30px 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.kcf-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 28px;
}

.kcf-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 12px 14px;
    transition: background .2s;
}

.kcf-contact-item:hover { background: rgba(255,255,255,.14); }

.kcf-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kcf-contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.kcf-contact-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kcf-contact-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: rgba(255,255,255,.55);
    margin-bottom: 2px;
}

.kcf-contact-info a,
.kcf-contact-info span {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}

.kcf-contact-info a:hover { color: #a8d0ff; }

.kcf-sidebar-brand {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

.kcf-sidebar-brand p {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.kcf-sidebar-brand small {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    line-height: 1.5;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 720px) {
    .kcf-wrapper { flex-direction: column; border-radius: 12px; }
    .kcf-sidebar { width: auto; }
    .kcf-form-side { padding: 30px 24px; }
    .kcf-sidebar-inner { padding: 28px 24px 24px; }
    .kcf-row-2 { grid-template-columns: 1fr; }
    .kcf-form-footer { flex-direction: column; align-items: stretch; }
    .kcf-btn-submit { justify-content: center; margin-left: 0; }
}
