/* =====================================================================
   WC Inquiry Form – Frontend Styles
   ===================================================================== */

.wcif-wrap {
    margin-top: 24px;
    font-family: inherit;
}

/* ── Formularz ─────────────────────────────────────────────────────── */
.wcif-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 28px 24px;
}

.wcif-field {
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.wcif-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.wcif-field label span {
    color: #e74c3c;
    margin-left: 2px;
}

.wcif-field input[type="email"],
.wcif-field input[type="text"],
.wcif-field textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 1.5px solid #ced4da !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background: #fff !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-shadow: none !important;
}

.wcif-field input:focus,
.wcif-field textarea:focus {
    outline: none !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, .12) !important;
}

.wcif-field input.wcif-invalid,
.wcif-field textarea.wcif-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .1) !important;
}

.wcif-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* ── Honeypot ───────────────────────────────────────────────────────── */
.wcif-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Przycisk ───────────────────────────────────────────────────────── */
.wcif-submit {
    margin-bottom: 0 !important;
}

.wcif-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  background-color: rgb(144, 22, 0);
  color: #fff;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border: 0;
    cursor: pointer !important;
    transition: opacity .2s !important;
}

.wcif-btn:disabled {
    opacity: .7 !important;
    cursor: not-allowed !important;
}

/* Spinner */
.wcif-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcif-spin .7s linear infinite;
}

.wcif-btn.wcif-loading .wcif-btn-spinner {
    display: block;
}

@keyframes wcif-spin {
    to { transform: rotate(360deg); }
}

/* ── Komunikat sukcesu ─────────────────────────────────────────────── */
.wcif-success-msg {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcif-success-msg::before {
    content: '✓';
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    background: #155724;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
