/* Benayes Distributor Form Pro CSS */
.benayes-distributor-form-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.benayes-distributor-form-pro h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #e47b02 0%, #ff9a3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 15px;
    border-bottom: 3px solid #e47b02;
}

.benayes-distributor-form-pro h3 {
    color: #e47b02;
    border-bottom: 2px solid #e47b02;
    padding-bottom: 12px;
    margin: 30px 0 20px 0;
    font-size: 22px;
    font-weight: 600;
}

.benayes-distributor-form-pro h4 {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0 10px 0;
    font-style: italic;
}

.benayes-distributor-form-pro label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.benayes-distributor-form-pro input,
.benayes-distributor-form-pro select {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.benayes-distributor-form-pro input:focus,
.benayes-distributor-form-pro select:focus {
    border-color: #e47b02;
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 123, 2, 0.1);
    background: #fffaf5;
}

.benayes-distributor-form-pro .submit-btn-pro {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    background: linear-gradient(135deg, #e47b02 0%, #ff9a3d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benayes-distributor-form-pro .submit-btn-pro:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(228, 123, 2, 0.3);
}

.benayes-distributor-form-pro .submit-btn-pro:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.benayes-distributor-form-pro .close {
    text-align: center;
    margin-top: 25px;
    color: #7f8c8d;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s ease;
}

.benayes-distributor-form-pro .close:hover {
    color: #e47b02;
}

.product-selection-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-item-pro {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.product-item-pro::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(228, 123, 2, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-item-pro:hover::before {
    left: 100%;
}

.product-item-pro:hover {
    border-color: #e47b02;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-item-pro.selected {
    border-color: #e47b02;
    box-shadow: 0 15px 35px rgba(228, 123, 2, 0.2);
    background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
    transform: translateY(-8px);
}

.product-item-pro.selected::after {
    content: "✓ SELECTED";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e47b02;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-item-pro img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.product-item-pro:hover img {
    transform: scale(1.05);
}

.product-title-pro {
    font-size: 20px;
    margin-top: 15px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}

.product-price-pro {
    color: #e47b02;
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.product-selection-label-pro {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.benayes-form-row-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.benayes-form-column-pro {
    display: flex;
    flex-direction: column;
}

.section-divider-pro {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e47b02, transparent);
    margin: 35px 0;
    border-radius: 3px;
}

.form-message-pro {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 600;
    font-size: 15px;
}

.form-message-pro.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message-pro.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.optional {
    color: #7f8c8d;
    font-weight: 500;
    font-style: italic;
}

.required-star {
    color: #e74c3c;
    font-weight: bold;
}

.form-section-pro {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #e47b02;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e47b02;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .benayes-distributor-form-pro {
        max-width: 95%;
        padding: 25px;
        margin: 15px auto;
    }
    
    .benayes-distributor-form-pro h2 {
        font-size: 26px;
    }
    
    .benayes-distributor-form-pro input,
    .benayes-distributor-form-pro select {
        padding: 12px;
    }
    
    .benayes-distributor-form-pro .submit-btn-pro {
        padding: 16px;
        font-size: 16px;
    }
    
    .benayes-form-row-pro {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .product-selection-pro {
        grid-template-columns: 1fr;
    }
    
    .form-section-pro {
        padding: 20px;
    }
}

/* Admin Styles */
.benayes-admin-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.benayes-admin-card h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e47b02;
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #e47b02 0%, #ff9a3d 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}