/* assets/css/mpf-frontend.css (نسخه 1.5.0) */

/* ============================================== */
/* ===== ۱. استایل کلی و بدنه فرم ===== */
/* ============================================== */
#my-portfolio-form-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 35px 40px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* ============================================== */
/* ===== ۲. هدر و توضیحات بالای فرم ===== */
/* ============================================== */
.mpf-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}
.mpf-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}
.mpf-form-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ============================================== */
/* ===== ۳. استایل فیلدها و برچسب‌ها ===== */
/* ============================================== */
#my-portfolio-form .form-row {
    margin-bottom: 22px;
}

#my-portfolio-form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.mpf-required {
    color: #d93025;
    font-weight: 700;
    margin-right: 4px;
}

/* استایل دهی به تمام فیلدهای ورودی */
#my-portfolio-form .form-row input[type="text"],
#my-portfolio-form .form-row input[type="tel"],
#my-portfolio-form .form-row textarea,
#my-portfolio-form .form-row .ts-control {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box; 
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#my-portfolio-form .form-row textarea {
    min-height: 120px;
    resize: vertical;
}

/* افکت Focus (کلیک) هماهنگ با رنگ طلایی */
#my-portfolio-form .form-row input[type="text"]:focus,
#my-portfolio-form .form-row input[type="tel"]:focus,
#my-portfolio-form .form-row textarea:focus,
#my-portfolio-form .form-row .ts-control.ts-focused {
    border-color: #B89B3B;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(184, 155, 59, 0.15);
    outline: none;
}


/* ============================================== */
/* ===== ۴. دکمه ارسال (طلایی و زیبا) ===== */
/* ============================================== */
#my-portfolio-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(145deg, #D4AF37, #B89B3B);
    color: white;
    padding: 14px 20px;
    border: 1px solid #A98A2A;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(184, 155, 59, 0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

#my-portfolio-form input[type="submit"]:hover {
    background: linear-gradient(145deg, #C7A93C, #A98A2A);
    border-color: #907422;
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(184, 155, 59, 0.3);
}

/* ============================================== */
/* ===== ۵. پیام‌های وضعیت و لیست کشویی (z-index) ===== */
/* ============================================== */
.mpf-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
}
.mpf-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.mpf-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* حل مشکل روی هم افتادن لیست کشویی */
.ts-dropdown {
    z-index: 9999 !important; 
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* ============================================== */
/* ===== ۶. دکمه شناور (FAB) ===== */
/* ============================================== */
.mpf-floating-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    background: linear-gradient(145deg, #D4AF37, #B89B3B);
    color: white;
    border: 1px solid #A98A2A;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpf-floating-button:hover {
    color: white;
    background: linear-gradient(145deg, #C7A93C, #A98A2A);
    border-color: #907422;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(184, 155, 59, 0.4);
}

/* ============================================== */
/* ===== ۷. بخش جدید: مخفی کردن تله عسل (Honeypot) ===== */
/* ============================================== */
.mpf-honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: -1;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none; /* اطمینان از عدم کلیک */
}