/* ==============================
   ROOT WRAPPER (Theme Protection)
================================ */
.krksf-form-wrapper {
    max-width: 600px;
    margin: 12px auto;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    background: var(--krksf-form-wrapper-bg, #fff);
    position: relative;
}

/* Reset only inside plugin */
.krksf-form-wrapper * {
    box-sizing: border-box;
}

/* ==============================
   FORM + FIELD
================================ */
.krksf-form {
    width: 100%;
     background: var(--krksf-form-bg, #fff);
}

.krksf-field {
    margin-bottom: 15px;
}


/* Force default normal weight */
.krksf-form .krksf-field .krks-label {
    
display:block;
    font-weight: normal;
}

/* Apply bold only when enabled */
.krksf-form .krksf-field .krksf-label.is-bold {
    font-weight: bold;
}



.krksf-required-label {
    color:red;
}


/* ==============================
   ALL INPUTS
================================ */
.krksf-field input,
.krksf-field textarea,
.krksf-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}


/* ==============================
   PHONE FIELD (30 / 70 )
================================ */

/* ==============================
   PHONE FIELD – FORCE  ...

================================ */

 .krksf-phone-wrap {
    display: flex;
    gap: 5px ;
 
}

/* Force children to respect width */
.krksf-phone-code {
  
    max-width: 30%;
}

.krksf-phone-number {
  
    max-width: 70%;
}


@media (max-width: 768px) {
    .krksf-phone-wrap {
    display: flex ;
    gap: 5px;
  
}

/* Force children to respect width */
.krksf-phone-code {
  
    max-width: 35%;
}

.krksf-phone-number {
  
    max-width: 70%;
}
}




/* ==============================
   RADIO + CHECKBOX (FIXED FOREVER)
================================ */
/* Force horizontal layout for group */
.krksf-radio-group,
.krksf-checkbox-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 24px !important;
    align-items: flex-start !important;
}

/* Each option becomes protected flex item */
.krksf-option-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left !important;
}

/* Kill theme interference */
.krksf-option-label input {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
}

.krksf-option-label span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==============================
   MULTISELECT
================================ */
.krksf-field select[multiple] {
    min-height: 120px;
}

/* Instruction text */
.krksf-form .krksf-instruction,
.krksf-form small {
    margin-top: 2px;
    display: block;
    font-size: 12px;
    line-height: 1.3;
}






/* ==============================
   MESSAGE BUTTON CAPTCHA PRIVACY LINK
================================ */



/* Base container */
.krksf-form .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
    box-sizing:border-box;
    zoom:0.85;
}


        
        
        
        .krksf-submit-btn {
            background:#2271b1;
            color:#fff;
            padding:12px 25px;
            border:none;
            border-radius:30px;
            cursor:pointer;
            font-size:15px;
            margin-top:16px;
            margin-bottom:20px;
        }
        .krksf-spinner {
            display:none;
            text-align:center;
            margin-top:10px;
        }
        .krksf-spinner img {
            width:42px;
        }
        
     .krksf-required-captcha {
         color:red;
     }

        
        
        .krksf-success {
            background:#e7f7ed;
            padding:12px;
            border-radius:8px;
            color:#0a6;
            margin-top:15px;
        }
        .krksf-error{background:#fdeaea;color:#b10000;padding:12px;border-radius:8px;margin-top:15px}
        
.krksf-privacy{margin:16px 0}
.krksf-privacy label{font-weight:500;display:flex;gap:8px;align-items:flex-start}
.krksf-privacy-content{font-size:13px;color:#555;margin-left:26px;margin-top:6px}
    
    
.krksf-privacy-link{
    display:inline-block;
    margin-left:26px;
    margin-top:6px;
    font-size:13px;
    color:#2271b1;
    cursor:pointer;
    text-decoration:underline;
}

.krksf-modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
}

.krksf-modal-content{
    background:#fff;
    max-width:600px;
    margin:10% auto;
    padding:20px;
    border-radius:12px;
    position:relative;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.krksf-modal-close{
    position:absolute;
    right:15px;
    top:10px;
    font-size:22px;
    cursor:pointer;
}

.krksf-modal-body{
    max-height:400px;
    overflow-y:auto;
    font-size:14px;
    color:#444;
}






.krksf-invalid {
    border: 1px solid red !important;
}

.krksf-error-msg {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

.krksf-type-phone .krksf-invalid {
    border: 1px solid red !important;
}







