/* ========================================================
   Recruitment Form – Front-end styles
   ICT · https://ict.com.tn/
   Version 1.0.0
   ======================================================== */

/* RTL support */
.rf-wrapper[dir="rtl"] .rf-field label,
.rf-wrapper[dir="rtl"] .rf-allowed-types {
    text-align: right;
}

.rf-wrapper[dir="rtl"] .rf-submit {
    text-align: left;
}

.rf-wrapper[dir="rtl"] input,
.rf-wrapper[dir="rtl"] textarea {
    direction: rtl;
    text-align: right;
}

.rf-wrapper {
    max-width: 620px;
    font-family: inherit;
}

/* ---- Fields ---- */
.rf-field {
    margin-bottom: 16px;
}

.rf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
    font-size: 0.95rem;
}

.rf-field input[type="text"],
.rf-field input[type="email"],
.rf-field input[type="tel"],
.rf-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.rf-field input[type="text"]:focus,
.rf-field input[type="email"]:focus,
.rf-field input[type="tel"]:focus,
.rf-field textarea:focus {
    border-color: #5ba4cf;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91, 164, 207, 0.25);
}

/* Blue-highlighted fields (Phone & Cover Letter) matching the screenshot */
.rf-field input.rf-highlight,
.rf-field textarea.rf-highlight {
    background-color: #7ec8e3;
    border-color: #5ba4cf;
    color: #fff;
}

.rf-field input.rf-highlight::placeholder,
.rf-field textarea.rf-highlight::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rf-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- File upload ---- */
.rf-file-wrapper {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 10px;
    background: #f9f9f9;
}

.rf-file-wrapper input[type="file"] {
    font-size: 0.9rem;
}

.rf-allowed-types {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #555;
}

/* ---- Submit button ---- */
.rf-submit {
    text-align: right;
    margin-top: 8px;
}

.rf-btn-submit {
    background: #3a3a3a;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.rf-btn-submit:hover {
    background: #222;
}

.rf-btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* ---- Messages ---- */
.rf-messages {
    margin-bottom: 14px;
}

.rf-messages.rf-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 14px;
    border-radius: 3px;
}

.rf-messages.rf-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 14px;
    border-radius: 3px;
}
