/* ========================================
   DISTRIBUTOR PROFILE PAGE
======================================== */

.mn-distributor-profile-page .entry-title,
.mn-distributor-profile-page .page-title {
    display: none !important;
}


/* Profile Wrapper */

.mn-profile-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 30px 90px;
    box-sizing: border-box;
}


/* Header */

.mn-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.mn-profile-header h2 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.3;
    color: #111;
}

.mn-profile-header p {
    margin: 0;
    font-size: 16px;
    color: #777;
}


/* Back Button */

.mn-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #111;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    white-space: nowrap;
}

.mn-back-btn:hover {
    background: #d9a800;
    color: #fff !important;
}


/* Profile Grid */

.mn-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}


/* Profile Card */

.mn-profile-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.mn-profile-card h3 {
    margin: 0 0 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    line-height: 1.3;
    color: #111;
}


/* Form Fields */

.mn-profile-field {
    margin-bottom: 22px;
}

.mn-profile-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.mn-profile-field input,
.mn-profile-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
}

.mn-profile-field textarea {
    min-height: 130px;
    resize: vertical;
}

.mn-profile-field input:focus,
.mn-profile-field textarea:focus {
    border-color: #d9a800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 168, 0, 0.1);
}


/* Read Only Email */

.mn-profile-field input[readonly] {
    background: #f5f5f5;
    color: #777;
    cursor: not-allowed;
}

.mn-profile-field small {
    display: block;
    margin-top: 7px;
    color: #888;
    font-size: 13px;
}


/* Password Field */

.mn-password-field {
    position: relative;
    width: 100%;
}

.mn-password-field input {
    width: 100%;
    padding-right: 55px;
}

.mn-password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
}


/* Buttons */

.mn-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #d9a800;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mn-profile-btn:hover {
    background: #111;
    color: #fff;
}


/* Success Message */

.mn-profile-success {
    margin-bottom: 30px;
    padding: 16px 20px;
    border-left: 4px solid #28a745;
    border-radius: 5px;
    background: #eaf7ee;
    color: #18763c;
}


/* Error Message */

.mn-profile-error {
    margin-bottom: 30px;
    padding: 16px 20px;
    border-left: 4px solid #dc3545;
    border-radius: 5px;
    background: #fdeaea;
    color: #c62828;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

    .mn-profile-wrapper {
        padding: 50px 25px 70px;
    }

    .mn-profile-grid {
        grid-template-columns: 1fr;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .mn-profile-wrapper {
        padding: 40px 20px 60px;
    }

    .mn-profile-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .mn-profile-header h2 {
        font-size: 28px;
    }

    .mn-profile-card {
        padding: 25px 20px;
    }

    .mn-profile-card h3 {
        font-size: 21px;
    }

    .mn-back-btn,
    .mn-profile-btn {
        width: 100%;
        box-sizing: border-box;
    }

}
/* ========================================
   DISTRIBUTOR LOGIN
======================================== */

.mn-login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.mn-login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 35px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mn-login-card h2 {
    margin: 0 0 25px;
    font-size: 26px;
    font-weight: 700;
    color: #181818;
}

.mn-login-field {
    margin-bottom: 20px;
}

.mn-login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #555555;
}

.mn-login-field input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.mn-login-field input:focus {
    border-color: #d9a600;
    box-shadow: 0 0 0 3px rgba(217, 166, 0, 0.12);
}

.mn-login-password {
    position: relative;
    width: 100%;
}

.mn-login-password input {
    padding-right: 55px;
}

.mn-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

.mn-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 48px;
    padding: 0 25px;
    border: 0;
    border-radius: 5px;
    background: #d9a600;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mn-login-btn:hover {
    background: #111111;
    color: #ffffff;
}


/* ========================================
   LOGIN ERROR
======================================== */

.mn-login-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #fff2f2;
    border: 1px solid #f1b5b5;
    border-left: 4px solid #d63638;
    border-radius: 5px;
    color: #b32d2e;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.mn-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: #d63638;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .mn-login-wrapper {
        padding: 25px 15px;
    }

    .mn-login-card {
        padding: 25px 20px;
    }

    .mn-login-card h2 {
        font-size: 22px;
    }

    .mn-login-btn {
        width: 100%;
    }

}
/* =====================================
   ADD CLIENT FORM
===================================== */

.mn-add-client {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}

.mn-add-client h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1c1c1c;
}

/* Form Card */

.mn-add-client form {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Form Group */

.mn-add-client .form-group {
    margin-bottom: 22px;
}

/* Labels */

.mn-add-client label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 8px;
}

/* Inputs */

.mn-add-client input[type="text"],
.mn-add-client input[type="email"],
.mn-add-client input[type="tel"],
.mn-add-client input[type="number"],
.mn-add-client select,
.mn-add-client textarea {
    width: 100%;
    height: 52px;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s ease;
}

/* Textarea */

.mn-add-client textarea {
    height: 130px;
    resize: vertical;
}

/* Focus */

.mn-add-client input:focus,
.mn-add-client select:focus,
.mn-add-client textarea:focus {
    outline: none;
    border-color: #d9a800;
    box-shadow: 0 0 0 3px rgba(217, 168, 0, 0.12);
}

/* Submit Button */

.mn-add-client button,
.mn-add-client input[type="submit"] {
    background: #d9a800;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.mn-add-client button:hover,
.mn-add-client input[type="submit"]:hover {
    background: #111111;
}

/* Mobile */

@media (max-width: 767px) {

    .mn-add-client {
        padding: 30px 15px 50px;
    }

    .mn-add-client form {
        padding: 25px 20px;
    }

    .mn-add-client h2 {
        font-size: 26px;
    }

    .mn-add-client button,
    .mn-add-client input[type="submit"] {
        width: 100%;
    }
}
.mn-success-message {
    padding: 16px 20px;
    margin-bottom: 25px;
    background: #eaf8ef;
    border-left: 4px solid #22b455;
    border-radius: 4px;
    color: #176b35;
    font-size: 16px;
}
/* =====================================
   HEADER DISTRIBUTOR ACCOUNT MENU
===================================== */

.mn-header-account-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.mn-header-account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.mn-header-account-link:hover {
    color: #e0aa00;
}

.mn-account-icon {
    color: #e0aa00;
    font-size: 15px;
}

.mn-header-logout {
    color: #ffffff;
}


/* MOBILE */

@media (max-width: 767px) {

    .mn-header-account-menu {
        gap: 10px;
        flex-wrap: wrap;
    }

    .mn-header-account-link {
        font-size: 12px;
    }

}
/* =========================================
   GET A QUOTE
========================================= */

.mn-quote-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 60px;
}

.mn-quote-header {
    margin-bottom: 30px;
}

.mn-quote-header h2 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    color: #171717;
}

.mn-quote-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #777777;
}


/* FORM */

.mn-quote-form {
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}


/* GRID */

.mn-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.mn-quote-full {
    grid-column: 1 / -1;
}


/* FIELDS */

.mn-quote-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mn-quote-field label {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #171717;
}

.mn-quote-field input,
.mn-quote-field select,
.mn-quote-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.mn-quote-field textarea {
    min-height: 130px;
    resize: vertical;
}


/* FOCUS */

.mn-quote-field input:focus,
.mn-quote-field select:focus,
.mn-quote-field textarea:focus {
    border-color: #e0aa00;
    box-shadow: 0 0 0 3px rgba(224, 170, 0, 0.12);
}


/* QUANTITY */

.mn-quantity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    width: 100%;
}


/* BUTTON */

.mn-quote-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 30px;
    padding: 14px 28px;
    border: 0;
    border-radius: 6px;
    background: #e0aa00;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.mn-quote-submit:hover {
    background: #171717;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .mn-quote-page {
        padding: 20px 0 40px;
    }

    .mn-quote-header h2 {
        font-size: 28px;
    }

    .mn-quote-form {
        padding: 25px 20px;
    }

    .mn-quote-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mn-quote-full {
        grid-column: auto;
    }

    .mn-quantity-row {
        grid-template-columns: 1fr;
    }

    .mn-quote-submit {
        width: 100%;
    }

}