/* KSF Form — Modern RTL Design */
.ksf-form-wrapper {
    max-width: 700px;
    margin: 30px auto;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
}

.ksf-form-title {
    margin: 0 0 30px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.ksf-form-message {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    display: none;
}
.ksf-form-message.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.ksf-form-message.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

.ksf-field-group {
    margin-bottom: 22px;
}

.ksf-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.ksf-required { color: #e53935; margin-right: 4px; }

.ksf-input,
.ksf-input[type="text"],
.ksf-input[type="email"],
.ksf-input[type="tel"],
.ksf-input[type="number"],
.ksf-input[type="date"],
.ksf-input[type="password"],
.ksf-input[type="url"],
textarea.ksf-input,
select.ksf-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #333;
    direction: rtl;
    text-align: right;
}

.ksf-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.ksf-input::placeholder {
    color: #aaa;
    text-align: right;
}

textarea.ksf-input {
    min-height: 120px;
    resize: vertical;
}

/* File input styling */
input[type="file"].ksf-input {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
input[type="file"].ksf-input::file-selector-button {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-left: 12px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

/* Checkbox / radio */
.ksf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 8px;
    cursor: pointer;
}
.ksf-checkbox-label input[type="checkbox"],
.ksf-checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

/* Submit button */
.ksf-submit-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    margin-top: 10px;
}
.ksf-submit-btn:hover {
    background: #333;
}
.ksf-submit-btn:active {
    transform: scale(0.98);
}
.ksf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ksf-field-error {
    display: block;
    color: #e53935;
    font-size: 13px;
    margin-top: 6px;
}

/* CAPTCHA group */
.ksf-captcha-group img {
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 200px;
    height: auto;
}
.ksf-captcha-group a.ksf-refresh-captcha {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
}
.ksf-captcha-group a.ksf-refresh-captcha:hover {
    text-decoration: underline;
}
