/* Custom styles for Contact Form KVKK and Consent checkboxes */

.kvkk-consent-box {
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Ensure left alignment */
}

.kvkk-checkbox-item {
    margin-bottom: 15px;
    position: relative;
    display: block;
    width: 100%;
}

.kvkk-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    cursor: pointer;
    width: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
}

/* Custom Checkbox Styling */
.kvkk-input {
    /* Reset default appearance */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Custom design */
    min-width: 22px !important; /* Fixed width */
    width: 22px !important;
    height: 22px !important; /* Fixed height */
    border: 2px solid #dc5310 !important; /* Brand color */
    border-radius: 4px !important;
    background-color: #fff !important;
    margin: 0 !important; /* Reset margin */
    margin-top: 2px !important; /* Visual alignment with the first line of text */
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0 !important; /* Prevent shrinking on small screens */
    outline: none !important;
    display: inline-block !important;
    float: none !important;
}

.kvkk-input:hover {
    border-color: #c04000 !important;
    background-color: #fff5f0 !important;
}

.kvkk-input:checked {
    background-color: #dc5310 !important;
    border-color: #dc5310 !important;
}

/* Checkmark icon */
.kvkk-input:checked::after {
    content: '';
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    width: 6px !important;
    height: 11px !important;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -65%) rotate(45deg) !important;
    display: block !important;
}

.kvkk-text {
    font-family: 'Poppins', sans-serif; /* Using Poppins for better readability, fallback to sans-serif */
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    flex: 1 !important; /* Take remaining width */
    text-align: left;
    display: block !important;
    width: auto !important;
}

.kvkk-text a {
    color: #dc5310;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.kvkk-text a:hover {
    color: #000;
}

.kvkk-required {
    color: #dc5310;
    font-weight: 700;
    margin-left: 3px;
    font-size: 16px;
    line-height: 1;
}

/* Info Box Styling */
.kvkk-info-box {
    margin-top: 25px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 4px solid #dc5310;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.kvkk-info-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .kvkk-consent-box {
        margin: 20px 0;
    }

    .kvkk-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .kvkk-input {
        min-width: 20px !important;
        width: 20px !important;
        height: 20px !important;
        margin-top: 1px !important;
    }
    
    .kvkk-input:checked::after {
        left: 6px;
        top: 2px;
        width: 4px;
        height: 9px;
    }
    
    .kvkk-info-box {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .kvkk-label {
        gap: 10px !important;
    }
    
    .kvkk-text {
        font-size: 12px;
    }
}
