/* Vendor Registration and Login Styles */
.vendor-registration-container,
.vendor-login-container {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
    padding: 2rem !important;
    position: relative !important;
}

.registration-form-container,
.login-form-container {
    width: 100% !important;
    max-width: 500px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e1e8ed !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.registration-form-container:hover,
.login-form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.registration-header,
.login-header {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    text-align: center;
    background: #f8f9fa;
}

.registration-header h1,
.login-header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.registration-header p,
.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* Remove the duplicate styles since we already defined them above */

.vendor-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.vendor-form-1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vendor-profile-container .form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

/* Ensure form groups in rows don't take full width */
.vendor-profile-container .form-row .form-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    transition: all 0.3s ease !important;
    min-width: 0 !important; /* Allow flex items to shrink */
    margin-bottom: 0 !important; /* Override main style.css */
}

/* When agency name is hidden, make full name take full width */
.vendor-profile-container .form-row:has(#agencyNameField[style*="display: none"]) .form-group:not(#agencyNameField) {
    flex: 1 !important;
}

/* Fallback for browsers that don't support :has() */
.vendor-profile-container .form-row .form-group:only-child {
    flex: 1 !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

#agencyNameGroup {
    transition: all 0.3s ease;
    overflow: hidden;
    display: none; /* Initially hidden */
    width: 100%;
    margin-top: 5px; /* Small gap from form-row */
}

#agencyNameGroup.show {
    display: block !important;
}

#agencyNameGroup input {
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d7bc35;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: #ffc900c7;
    color: #333;
    border: 2px solid #d7bc35;
    box-shadow: 0 2px 8px rgba(215, 188, 53, 0.2);
}

.btn-primary:hover {
    background: #d7bc35;
    border-color: #c4a82a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 188, 53, 0.3);
}

.btn-secondary {
    background: #f4f4f4;
    color: #666;
    border: 2px solid #d7bc35;
}

.btn-secondary:hover {
    background: #e9e9e9;
    border-color: #c4a82a;
    color: #555;
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.form-footer {
    padding: 20px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
    text-align: center;
}

.form-footer a {
    color: #d7bc35;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Services Grid - Updated below */

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-checkbox:hover {
    background: #e9ecef;
    border-color: #d7bc35;
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.service-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #d7bc35;
    border-color: #d7bc35;
}

.service-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Success State */
.success-container {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.success-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.success-container p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Profile Page Styles */
.vendor-profile-container {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

.profile-form-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 2rem !important;
    margin-top: 0 !important;
    font-weight: 600;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.form-section p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-section-1 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.form-section-1:last-child {
    margin-bottom: 0;
}

.form-section-1 h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 2rem !important;
    margin-top: 0 !important;
    font-weight: 600;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.form-section-1 p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Agency Name Field */
#agencyNameField {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* When agency name is hidden, make full name take full width */
.form-row:has(#agencyNameField[style*="display: none"]) .form-group:not(#agencyNameField) {
    grid-column: 1 / -1;
}

/* Fallback for browsers that don't support :has() */
.form-row .form-group:only-child {
    grid-column: 1 / -1;
}

#agencyNameField input[readonly],
input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Services Grid - 3 columns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Styles */
.vendor-dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin: 0;
}

.vendor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vendor-info span {
    font-weight: 600;
    color: #2c3e50;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d7bc35;
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.stat-card p {
    color: #7f8c8d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.status-pending {
    color: #f39c12;
}

.status-verified {
    color: #27ae60;
}

.status-suspended {
    color: #e74c3c;
}

.status-rejected {
    color: #e74c3c;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-info {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dashboard-info h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
}

.dashboard-info ul {
    color: #7f8c8d;
    line-height: 1.6;
}

.dashboard-info li {
    margin-bottom: 0.5rem;
}

/* Message Styles */
.form-message,
.dashboard-message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

.form-message.success-message,
.dashboard-message.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error-message,
.dashboard-message.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info-message,
.dashboard-message.info-message {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vendor-registration-container,
    .vendor-login-container {
        padding: 1rem;
    }
    
    .registration-form-container,
    .login-form-container {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .registration-header h1,
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1.5rem;
    }
   
    .form-section-1 {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vendor-registration-container,
    .vendor-login-container {
        padding: 0.5rem;
    }
    
    .registration-form-container,
    .login-form-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .registration-header h1,
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section-1 {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 1rem;
    }
}

/* Simple hover animation */
.registration-form-container,
.login-form-container {
    transition: all 0.3s ease;
}

/* Loading animation for buttons */
.btn-loader {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state animation */
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-container {
    animation: successPulse 2s ease-in-out infinite;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

/* KYC Status Section */
.kyc-status-section {
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kyc-status-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.kyc-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kyc-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kyc-status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.kyc-status-content {
    flex: 1;
}

.kyc-status-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.kyc-status-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.4;
}

.kyc-status-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

/* Status-specific styling */
.kyc-status-card.incomplete {
    border-left: 4px solid #f39c12;
}

.kyc-status-card.incomplete .kyc-status-icon {
    background: #f39c12;
}

.kyc-status-card.pending {
    border-left: 4px solid #d7bc35;
}

.kyc-status-card.pending .kyc-status-icon {
    background: #d7bc35;
}

.kyc-status-card.approved {
    border-left: 4px solid #27ae60;
}

.kyc-status-card.approved .kyc-status-icon {
    background: #27ae60;
}

.kyc-status-card.rejected {
    border-left: 4px solid #e74c3c;
}

.kyc-status-card.rejected .kyc-status-icon {
    background: #e74c3c;
}

/* Map Interface Styles */
.map-container {
    margin: 1rem 0;
}

.map-controls {
    margin-bottom: 0.5rem;
    text-align: right;
    float: right;
    margin-top: 10px;
}

.map-controls .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.map-instructions {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e1e8ed;
    font-size: 0.9rem;
    color: #6c757d;
}

.map-instructions i {
    margin-right: 0.5rem;
    color: #d7bc35
}

.location-status {
    margin-bottom: 1rem;
}

.location-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.location-indicator.not-selected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.location-indicator.selected {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.location-indicator i {
    font-size: 1.1rem;
}

/* Services Management Styles - Compact Card Layout */
.services-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    margin: 1rem 0 !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: fit-content;
    max-width: 300px;
    margin: 0 auto;
}

.service-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #d7bc35;
    transform: translateY(-2px);
}

.service-card-header {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #d7bc35;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.service-title-row h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.service-card-body {
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: center;
}

.service-card-body p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
    min-height: 50px;
}

.service-card-footer {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card-footer.active {
    opacity: 1;
}

.service-card-footer .pricing-field {
    margin-bottom: 0.75rem;
}

.service-card-footer .pricing-field:last-child {
    margin-bottom: 0;
}

.pricing-field {
    display: flex;
    flex-direction: column;
}

.pricing-field label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
    text-align: left;
}

.pricing-field input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    width: 100%;
}

.pricing-field input:focus {
    outline: none;
    border-color: #d7bc35;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

        .pricing-field input:disabled {
            background-color: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
        }

        .field-help {
            font-size: 0.7rem;
            color: #666;
            margin-top: 0.25rem;
            font-style: italic;
        }

        /* Pricing Validation Styles */
        .field-error {
            display: none;
            color: #dc3545;
            font-size: 0.7rem;
            margin-top: 0.25rem;
            font-weight: 500;
        }

        .pricing-field input.error {
            border-color: #dc3545;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
        }

        /* Top Action Buttons - Platform Theme */
        .form-actions-top {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1rem 0;
            border-bottom: 1px solid #e0e0e0;
            justify-content: flex-end; /* Move buttons to right */
        }

        .form-actions-top .btn-save,
        .form-actions-top .btn-reset {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 2px solid;
        }

        /* Save Button - Platform Primary Theme */
        .form-actions-top .btn-save {
            background: #ffc900c7;
            border-color: #d7bc35;
            color: #333;
            box-shadow: 0 2px 8px rgba(215, 188, 53, 0.2);
        }

        .form-actions-top .btn-save:hover {
            background: #d7bc35;
            border-color: #c4a82a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(215, 188, 53, 0.3);
        }

        /* Reset Button - Platform Secondary Theme */
        .form-actions-top .btn-reset {
            background: #f4f4f4;
            border-color: #d7bc35;
            color: #666;
        }

        .form-actions-top .btn-reset:hover {
            background: #e9e9e9;
            border-color: #c4a82a;
            color: #555;
            transform: translateY(-1px);
        }

        /* Bottom Form Actions - Platform Theme */
        .form-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            padding: 1.5rem 0;
            border-top: 1px solid #e0e0e0;
            justify-content: center; /* Center the bottom buttons */
        }

        .form-actions .btn-save-bottom,
        .form-actions .btn-reset-bottom {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 2px solid;
        }

        /* Bottom Save Button - Platform Primary Theme */
        .form-actions .btn-save-bottom {
            background: #ffc900c7;
            border-color: #d7bc35;
            color: #333;
            box-shadow: 0 2px 8px rgba(215, 188, 53, 0.2);
        }

        .form-actions .btn-save-bottom:hover {
            background: #d7bc35;
            border-color: #c4a82a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(215, 188, 53, 0.3);
        }

        /* Bottom Reset Button - Platform Secondary Theme */
        .form-actions .btn-reset-bottom {
            background: #f4f4f4;
            border-color: #d7bc35;
            color: #666;
        }

        .form-actions .btn-reset-bottom:hover {
            background: #e9e9e9;
            border-color: #c4a82a;
            color: #555;
            transform: translateY(-1px);
        }

        /* Custom Modal Styles */
        .custom-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .custom-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .custom-modal-content {
            position: relative;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .custom-modal-header {
            padding: 1.5rem 1.5rem 1rem 1.5rem;
            border-bottom: 1px solid #e0e0e0;
        }

        .custom-modal-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.25rem;
            font-weight: 600;
        }

        .custom-modal-body {
            padding: 1.5rem;
        }

        .custom-modal-body p {
            margin: 0 0 1rem 0;
            color: #666;
            line-height: 1.5;
        }

        .custom-modal-body ul {
            margin: 1rem 0;
            padding-left: 1.5rem;
        }

        .custom-modal-body li {
            margin: 0.5rem 0;
            color: #666;
        }

        .custom-modal-body strong {
            color: #dc3545;
            font-weight: 600;
        }

        .custom-modal-footer {
            padding: 1rem 1.5rem 1.5rem 1.5rem;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }

        .btn-cancel,
        .btn-confirm {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-cancel {
            background: #f4f4f4;
            color: #666;
            border: 2px solid #d7bc35;
        }

        .btn-cancel:hover {
            background: #e9e9e9;
            color: #555;
            border-color: #c4a82a;
        }

        .btn-confirm {
            background: #ffc900c7;
            color: #333;
            border: 2px solid #d7bc35;
            box-shadow: 0 2px 8px rgba(215, 188, 53, 0.2);
        }

        .btn-confirm:hover {
            background: #d7bc35;
            border-color: #c4a82a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(215, 188, 53, 0.3);
        }

        /* Services Overview Card */
        .services-overview-card {
            background: white;
            border: 2px solid #d7bc35;
            border-radius: 12px;
            margin: 2rem 0;
            box-shadow: 0 4px 12px rgba(215, 188, 53, 0.1);
            overflow: hidden;
        }

        .services-overview-card .card-header {
            background: #ffc900c7;
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #d7bc35;
        }

        .services-overview-card .card-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.25rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .services-overview-card .card-header h3 i {
            color: #d7bc35;
        }

        .btn-manage {
            background: #f4f4f4;
            color: #666;
            border: 2px solid #d7bc35;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .btn-manage:hover {
            background: #e9e9e9;
            color: #555;
            border-color: #c4a82a;
            transform: translateY(-1px);
        }

        .services-overview-card .card-content {
            padding: 1.5rem;
        }

        .services-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .summary-item .label {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 0.25rem;
        }

        .summary-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #d7bc35;
        }

        .services-list {
            max-height: 200px;
            overflow-y: auto;
        }

        .service-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            margin: 0.5rem 0;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 3px solid #d7bc35;
        }

        .service-name {
            font-weight: 600;
            color: #333;
        }

        .service-price {
            font-weight: 700;
            color: #d7bc35;
            font-size: 1.1rem;
        }

        .no-services {
            text-align: center;
            color: #666;
            font-style: italic;
            padding: 2rem;
        }

        /* Services Status Line */
        .services-status {
            margin-top: 1rem;
            padding: 0.75rem 1rem;
            background: #f8f9fa;
            border: 1px solid #d7bc35;
            border-radius: 8px;
            text-align: center;
        }

        .services-status .status-text {
            font-size: 0.9rem;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .services-status .status-text i {
            font-size: 1rem;
        }

        /* KYC Status Card */
        .kyc-status-card {
            background: white;
            border: 2px solid #d7bc35;
            border-radius: 12px;
            margin: 2rem 0;
            box-shadow: 0 4px 12px rgba(215, 188, 53, 0.1);
            overflow: hidden;
        }

        .kyc-status-card .card-header {
            background: #ffc900c7;
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #d7bc35;
        }

        .kyc-status-card .card-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.25rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .kyc-status-card .card-header h3 i {
            color: #d7bc35;
        }

        .btn-kyc-approval {
            background: #28a745;
            color: white;
            border: 2px solid #28a745;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-kyc-approval:hover {
            background: #218838;
            border-color: #1e7e34;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .btn-kyc-approval:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .kyc-status-card .card-content {
            padding: 1.5rem;
        }

        .kyc-checklist {
            margin-bottom: 1.5rem;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .checklist-item:last-child {
            border-bottom: none;
        }

        .status-icon {
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
        }

        .status-icon.completed {
            color: #28a745;
        }

        .status-icon.pending {
            color: #dc3545;
        }

        .checklist-text {
            flex: 1;
            font-weight: 500;
            color: #333;
        }

        .checklist-status {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .kyc-message {
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #d7bc35;
        }

        .kyc-message p {
            margin: 0;
            color: #666;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .kyc-message p i {
            font-size: 1rem;
        }

        /* Document Upload Cards */
        .document-card {
            display: none;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: #f8f9fa;
            border: 2px solid #d7bc35;
            border-radius: 8px;
            margin-top: 0.5rem;
        }

        .document-preview {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
        }

        .document-preview i {
            font-size: 1.5rem;
            color: #d7bc35;
            width: 24px;
            text-align: center;
        }

        .document-name {
            font-weight: 500;
            color: #333;
            font-size: 0.9rem;
        }

        .document-actions {
            display: flex;
            gap: 0.5rem;
        }

        .btn-change, .btn-delete {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid;
        }

        .btn-change {
            background: #d7bc35;
            color: #333;
            border-color: #d7bc35;
        }

        .btn-change:hover {
            background: #c4a82a;
            border-color: #c4a82a;
            transform: translateY(-1px);
        }

        .btn-delete {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        .btn-delete:hover {
            background: #c82333;
            border-color: #c82333;
            transform: translateY(-1px);
        }

        /* Responsive Design for Top and Bottom Buttons */
        @media (max-width: 768px) {
            .form-actions-top {
                flex-direction: column;
                gap: 0.75rem;
                align-items: flex-end; /* Keep buttons aligned to right on mobile */
            }
            
            .form-actions-top .btn-save,
            .form-actions-top .btn-reset {
                width: auto;
                min-width: 140px;
                justify-content: center;
            }

            .form-actions {
                flex-direction: column;
                gap: 0.75rem;
                align-items: center; /* Center buttons on mobile */
            }
            
            .form-actions .btn-save-bottom,
            .form-actions .btn-reset-bottom {
                width: auto;
                min-width: 140px;
                justify-content: center;
            }
            
            .custom-modal-content {
                width: 95%;
                margin: 1rem;
            }
            
            .custom-modal-footer {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .btn-cancel,
            .btn-confirm {
                width: 100%;
            }
        }

/* Responsive Design for Services Cards */
@media (max-width: 1200px) {
    .services-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin: 1rem 0 !important;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .services-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .service-card-header,
    .service-card-body,
    .service-card-footer {
        padding: 0.75rem;
    }
}
