/* ---------------------------------------------------------
   Private Seller Enhanced Styles (Dashboard styles removed)
------------------------------------------------------------*/

/* Listings Grid */
.aims-private-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Listing Card */
.aims-private-listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eaeaea;
}

.aims-private-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* Badges */
.private-seller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff8200;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 130, 0, 0.3);
}

/* Listing Image */
.listing-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aims-private-listing-card:hover .listing-image img {
    transform: scale(1.05);
}

/* Listing Details */
.listing-details {
    padding: 20px;
}

.listing-details h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #ff8200;
    margin-bottom: 12px;
}

.specs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
    font-size: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.location {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* View Details Button */
.view-details-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.view-details-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ---------------------------------------------------------
   Registration and Login Forms
------------------------------------------------------------*/

.aims-private-register-form,
.aims-private-login-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.auth-options {
    margin-bottom: 30px;
}

.google-auth-btn {
    width: 100%;
    padding: 14px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.google-auth-btn:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eaeaea;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #a0aec0;
    font-size: 14px;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ---------------------------------------------------------
   Package Selection
------------------------------------------------------------*/

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.package-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.package-card.recommended {
    border-color: #ff8200;
}

.package-card.recommended:before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff8200;
    color: white;
    padding: 5px 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

/* Package Header */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.package-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.package-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff8200;
}

/* ---------------------------------------------------------
   Messages & Notices
------------------------------------------------------------*/

.aims-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 15px 0;
}

.aims-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

/* Contact Form */
.private-seller-contact-form {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.private-seller-contact-form h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Verification Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Price Comparison */
.price-comparison {
    background: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

.price-comparison h4 {
    color: #856404;
    margin: 0 0 10px;
    font-size: 14px;
}

/* Expiry Warning */
.expiry-warning {
    background: #f8d7da;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expiry-warning i {
    color: #dc3545;
    font-size: 18px;
}

/* ---------------------------------------------------------
   Responsive Design
------------------------------------------------------------*/

@media (max-width: 768px) {
    .aims-private-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .aims-private-register-form,
    .aims-private-login-form {
        margin: 20px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .aims-private-listings-grid {
        grid-template-columns: 1fr;
    }

    .private-seller-badge,
    .featured-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ---------------------------------------------------------
   Loading Animation
------------------------------------------------------------*/

.aims-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* WhatsApp Modal Styles */
#aims-whatsapp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

#aims-whatsapp-modal .modal-content {
    background: white;
    max-width: 450px;
    width: 90%;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#aims-whatsapp-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

#aims-whatsapp-modal .modal-close:hover {
    color: #333;
}

#aims-whatsapp-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

#aims-whatsapp-modal p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Layout */
#aims-whatsapp-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 500px) {
    #aims-whatsapp-form .form-row {
        grid-template-columns: 1fr;
    }
}

#aims-whatsapp-form .form-group {
    margin-bottom: 20px;
}

#aims-whatsapp-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

#aims-whatsapp-form input,
#aims-whatsapp-form select,
#aims-whatsapp-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

#aims-whatsapp-form input:focus,
#aims-whatsapp-form select:focus,
#aims-whatsapp-form textarea:focus {
    outline: none;
    border-color: #ff8200;
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
}

#aims-whatsapp-form input.error,
#aims-whatsapp-form select.error,
#aims-whatsapp-form textarea.error {
    border-color: #dc3545;
}

#aims-whatsapp-form small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Submit Button */
#aims-whatsapp-form button[type="submit"] {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#aims-whatsapp-form button[type="submit"]:hover {
    background: #20b859;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

#aims-whatsapp-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Messages */
#aims-whatsapp-feedback {
    margin-top: 20px;
}

#aims-whatsapp-feedback .success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

#aims-whatsapp-feedback .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Backdrop click handler */
.aims-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* ---------------------------------------------------------
   Three‑column cards – responsive stacking
------------------------------------------------------------*/
.content-section.three-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 60px !important;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .content-section.three-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 column (stacking) */
@media (max-width: 768px) {
    .content-section.three-columns {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}