/* Vaagdevi CRM Global Styles */

/* Form Styles */
.vrm-form {
    max-width: 600px;
    margin: 24px 0;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.vrm-form p {
    margin-bottom: 20px;
    color: #646970;
}

.vrm-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
    font-size: 14px;
}

.vrm-form input[type="text"],
.vrm-form input[type="email"],
.vrm-form input[type="number"],
.vrm-form input[type="password"],
.vrm-form select,
.vrm-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 16px;
    /* Larger font for inputs */
    line-height: 1.5;
    box-sizing: border-box;
    transition: all 0.2s ease;
    color: #2c3338;
}

.vrm-form input:focus,
.vrm-form select:focus,
.vrm-form textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.vrm-form button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.2);
}

.vrm-form button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(34, 113, 177, 0.25);
}

/* List Styles */
.vrm-requirements-list {
    display: grid;
    gap: 24px;
}

.vrm-req-item {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.vrm-req-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cfd9e3;
}

.vrm-req-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px 0;
}

.vrm-req-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #646970;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vrm-req-meta span {
    background: #f0f0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    color: #50575e;
}

.vrm-req-desc {
    color: #3c434a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.vrm-u-full-width {
    width: 100%;
}

/* Search Bar */
.vrm-search-bar {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e4e7;
}

.vrm-search-bar input,
.vrm-search-bar select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
}

.vrm-search-bar button {
    background: #1d2327;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.vrm-search-bar button:hover {
    background: #000;
}

.vrm-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    /* Centered pagination */
    margin-top: 32px;
}

.vrm-pagination button {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 8px 16px;
    border-radius: 6px;
    color: #1d2327;
    cursor: pointer;
    transition: all 0.2s;
}

.vrm-pagination button:hover:not([disabled]) {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.vrm-pagination button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f6f7f7;
}

/* Auth Pages */
.vrm-auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 40px auto;
    max-width: 1000px;
}

.vrm-auth-box {
    border: 1px solid #e2e4e7;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.vrm-auth-form {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.vrm-auth-link {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

/* Premium Registration Form */
.vrm-premium-container {
    max-width: 500px;
    margin: 40px auto;
    border: none;
    border-radius: 20px;
    padding: 40px 32px;
    background: #fff;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
}

.vrm-premium-badge {
    position: absolute;
    top: -15px;
    right: 24px;
    background: linear-gradient(135deg, #1d4fd8, #113aa0);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(29, 79, 216, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vrm-premium-form {
    margin-top: 24px;
}

.vrm-role-selector {
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 18px;
    color: #1d2327;
    background: #f6f7f7;
    padding: 12px;
    border-radius: 12px;
}

.vrm-radio-label {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vrm-radio-custom {
    display: inline-block;
}

.vrm-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #eef0f2;
    border-radius: 10px;
    margin-top: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fbfbfb;
}

.vrm-input-group:focus-within {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
}

.vrm-input-icon {
    width: 48px;
    text-align: center;
    color: #a0a5ab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vrm-input-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vrm-input-group input,
.vrm-input-group select {
    border: none;
    padding: 14px 12px;
    width: 100%;
    background: transparent;
    font-size: 16px;
    color: #2c3338;
    outline: none;
    height: auto;
}

.vrm-input-tip {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8c8f94;
    padding-left: 4px;
}

.vrm-btn-premium {
    margin-top: 32px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vrm-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.vrm-terms-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #646970;
}

.vrm-login-link {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

.vrm-login-link a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

/* Notices */
.vrm-notice {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-left: 4px solid;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.vrm-notice.success {
    background-color: #edfaef;
    border-color: #46b450;
    color: #1e3a23;
}

.vrm-notice.error {
    background-color: #fbeaea;
    border-color: #d63638;
    color: #6d2325;
}

/* Styled Form General */
.vrm-form-styled label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.vrm-form-styled input[type="text"],
.vrm-form-styled input[type="email"],
.vrm-form-styled input[type="number"],
.vrm-form-styled select,
.vrm-form-styled textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.vrm-form-styled input:focus,
.vrm-form-styled select:focus,
.vrm-form-styled textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .vrm-form {
        max-width: 100%;
        margin: 16px 0;
        padding: 20px;
    }

    .vrm-search-bar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .vrm-req-meta {
        flex-direction: column;
        gap: 8px;
    }

    .vrm-premium-container {
        padding: 24px 20px;
        margin: 20px 10px;
    }

    .vrm-btn-premium {
        font-size: 18px;
    }

    .vrm-input-group {
        margin-top: 12px;
    }
}

/* Form Styles */
.vrm-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.vrm-form p {
    margin-bottom: 15px;
}

.vrm-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vrm-form input[type="text"],
.vrm-form input[type="email"],
.vrm-form input[type="number"],
.vrm-form select,
.vrm-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    /* Fix padding issues */
}

.vrm-form button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.vrm-form button:hover {
    background: #135e96;
}

/* List Styles */
.vrm-requirements-list {
    display: grid;
    gap: 20px;
}

.vrm-req-item {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.vrm-req-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vrm-req-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.vrm-req-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #646970;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vrm-req-meta span {
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 4px;
}

.vrm-req-desc {
    color: #3c434a;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vrm-u-full-width {
    width: 100%;
}

/* Search Bar */
.vrm-search-bar {
    background: #f0f0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.vrm-search-bar input,
.vrm-search-bar select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.vrm-search-bar button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.vrm-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.vrm-pagination button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.vrm-auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.vrm-auth-box {
    border: 1px solid #d2dae3;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.vrm-auth-form {
    max-width: none;
    margin: 0;
}

.vrm-auth-link {
    margin-top: 10px;
}

.vrm-premium-container {
    max-width: 520px;
    margin: 12px auto;
    border: 4px solid #0d5b82;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
    position: relative;
}

.vrm-premium-badge {
    position: absolute;
    top: -14px;
    right: 14px;
    background: #0d5b82;
    color: #fff;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
}

.vrm-premium-form {
    margin-top: 20px;
}

.vrm-role-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 22px;
    color: #333;
}

.vrm-radio-label {
    font-size: 18px;
    font-weight: 700;
}

.vrm-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.vrm-input-icon {
    width: 42px;
    text-align: center;
    color: #6f7a84;
}

.vrm-input-group input {
    border: none;
    padding: 12px 10px;
    width: 100%;
}

.vrm-input-group select {
    border: none;
    padding: 12px 10px;
    width: 100%;
    background: #fff;
    font-size: 15px;
    color: #333;
    outline: none;
}

.vrm-input-tip {
    margin: 4px 0 8px;
    font-size: 12px;
    color: #6d7782;
}

.vrm-btn-premium {
    margin-top: 12px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    font-size: 28px;
    font-weight: 700;
}

.vrm-terms-text,
.vrm-login-link {
    text-align: center;
    margin-top: 12px;
}

.vrm-login-premium-container {
    max-width: 520px;
    margin: 12px auto;
}

.vrm-login-form-premium {
    margin-top: 22px;
}

.vrm-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
    font-size: 14px;
}

.vrm-login-row label {
    margin: 0;
    font-weight: 600;
    color: #444;
}

.vrm-login-row a {
    color: #0d5b82;
    text-decoration: none;
    font-weight: 600;
}

.vrm-login-row a:hover {
    text-decoration: underline;
}

.vrm-btn-login {
    font-size: 24px;
    letter-spacing: 0.4px;
}

/* Notices */
.vrm-notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-left: 4px solid;
    border-radius: 4px;
}

.vrm-notice.success {
    background-color: #edfaef;
    border-color: #46b450;
    color: #1e3a23;
}

.vrm-notice.error {
    background-color: #fbeaea;
    border-color: #dc3232;
    color: #551e1e;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .vrm-form {
        max-width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    .vrm-search-bar {
        grid-template-columns: 1fr;
        /* Stack search inputs */
        gap: 10px;
        padding: 15px;
    }

    .vrm-req-meta {
        flex-direction: column;
        /* Stack meta items */
        gap: 8px;
    }

    .vrm-req-meta span {
        width: fit-content;
    }

    .vrm-req-item {
        padding: 15px;
    }

    .vrm-form button,
    .vrm-search-bar button {
        width: 100%;
        /* Full width buttons */
        padding: 12px;
        /* Easier to tap */
    }

    .vrm-login-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Improve table scrolling on mobile */
    .vrm-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}