/* ============================================================
   Kewlar & Carbon - Formularz zapytania ofertowego
   Minimalistyczny, biały + ciemny tekst + żółte akcenty
   ============================================================ */

.kcrfq-offer-form {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    font-family: inherit;
}

/* ─── FIELDSET ─── */
.kcrfq-fieldset {
    border: none;
    border-top: 1px solid #f0f0f0;
    padding: 24px 0;
    margin: 0;
}

.kcrfq-fieldset:first-of-type {
    border-top: none;
    padding-top: 0;
}

.kcrfq-fieldset legend {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 10px 0 0;
    margin-bottom: 6px;
    position: relative;
}

.kcrfq-fieldset legend::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #FFD700;
    margin-top: 6px;
}

/* ─── ROW (2 kolumny) ─── */
.kcrfq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.kcrfq-field {
    margin-bottom: 14px;
}

/* ─── LABELE ─── */
.kcrfq-offer-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.kcrfq-offer-form .req {
    color: #d63638;
    font-weight: 700;
    margin-left: 2px;
}

.kcrfq-hint {
    font-weight: 400;
    font-size: 12px;
    color: #888;
    margin-left: 6px;
}

/* ─── INPUTY ─── */
.kcrfq-offer-form input[type="text"],
.kcrfq-offer-form input[type="email"],
.kcrfq-offer-form input[type="tel"],
.kcrfq-offer-form input[type="number"],
.kcrfq-offer-form select,
.kcrfq-offer-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kcrfq-offer-form input:focus,
.kcrfq-offer-form select:focus,
.kcrfq-offer-form textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.kcrfq-offer-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23555' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.kcrfq-offer-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ─── INFO ZALOGOWANEGO UŻYTKOWNIKA ─── */
.kcrfq-logged-info {
    background: #fafafa;
    padding: 12px 16px;
    border-left: 3px solid #FFD700;
    margin-bottom: 16px;
    font-size: 13px;
    border-radius: 0 3px 3px 0;
}

.kcrfq-logout-link {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
    text-decoration: underline;
}

.kcrfq-logout-link:hover {
    color: #1a1a1a;
}

/* ─── UPLOAD PLIKÓW ─── */
.kcrfq-file-wrapper {
    position: relative;
}

.kcrfq-file-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.kcrfq-file-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 20px 18px !important;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    transition: all 0.2s;
}

.kcrfq-file-label:hover,
.kcrfq-file-wrapper.kcrfq-dragover .kcrfq-file-label {
    background: #fffbe5;
    border-color: #FFD700;
    color: #1a1a1a !important;
}

.kcrfq-file-icon {
    font-size: 22px;
}

.kcrfq-files-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.kcrfq-file-item {
    position: relative;
    background: #fafafa;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 1;
}

.kcrfq-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kcrfq-file-item .kcrfq-file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── ZGODA RODO ─── */
.kcrfq-consent {
    background: #fafafa;
    padding: 14px 16px;
    border-radius: 3px;
    margin: 24px 0 20px;
}

.kcrfq-consent label {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #555 !important;
    margin: 0 !important;
    cursor: pointer;
}

.kcrfq-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #FFD700;
}

.kcrfq-consent a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ─── PRZYCISK SUBMIT ─── */
.kcrfq-submit-btn {
    width: 100%;
    padding: 16px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.kcrfq-submit-btn::after {
    content: '→';
    margin-left: 12px;
    transition: margin-left 0.2s;
}

.kcrfq-submit-btn:hover {
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kcrfq-submit-btn:hover::after {
    margin-left: 18px;
}

.kcrfq-submit-btn:active {
    transform: translateY(1px);
}

.kcrfq-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

.kcrfq-note .req {
    color: #d63638;
}

/* ─── HONEYPOT (ukryty) ─── */
.kcrfq-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ─── KOMUNIKAT SUKCESU ─── */
.kcrfq-offer-success {
    max-width: 720px;
    margin: 30px auto;
    padding: 40px 35px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.kcrfq-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFD700;
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    line-height: 60px;
    margin: 0 auto 18px;
}

.kcrfq-offer-success h3 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #1a1a1a;
}

.kcrfq-offer-success p {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
}

.kcrfq-account-info {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fafafa;
    border-left: 3px solid #FFD700;
    text-align: left;
    font-size: 14px;
    border-radius: 0 3px 3px 0;
}

.kcrfq-account-info strong {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
}

/* ─── KOMUNIKAT BŁĘDU ─── */
.kcrfq-offer-error {
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    background: #fef0f1;
    border-left: 3px solid #d63638;
    border-radius: 0 3px 3px 0;
    color: #1a1a1a;
    font-size: 14px;
}

/* ─── RESPONSYWNOŚĆ ─── */
@media (max-width: 600px) {
    .kcrfq-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kcrfq-fieldset {
        padding: 20px 0;
    }

    .kcrfq-offer-form input[type="text"],
    .kcrfq-offer-form input[type="email"],
    .kcrfq-offer-form input[type="tel"],
    .kcrfq-offer-form input[type="number"],
    .kcrfq-offer-form select,
    .kcrfq-offer-form textarea {
        font-size: 16px; /* zapobiega zoom na iOS */
    }

    .kcrfq-submit-btn {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
}
