/* MapaSEO Carrito Page Styles */

/* Variables */
:root {
    --mapaseo-primary: #2E7D32;
    --mapaseo-secondary: #1976D2;
    --mapaseo-accent: #FFA726;
    --mapaseo-dark: #263238;
    --mapaseo-light: #F5F5F5;
    --mapaseo-success: #43A047;
    --mapaseo-error: #D32F2F;
    --mapaseo-gradient: linear-gradient(135deg, #2E7D32 0%, #1976D2 100%);
}

/* General Styles */
.mapaseo-carrito-page {
    font-family: 'Lato', sans-serif;
    color: var(--mapaseo-dark);
    line-height: 1.6;
    background: var(--mapaseo-light);
    min-height: 100vh;
}

/* Progress Steps */
.checkout-progress {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--mapaseo-primary);
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--mapaseo-primary);
    font-weight: 600;
}

.step-line {
    height: 2px;
    width: 80px;
    background: #E0E0E0;
    margin: 0 20px;
    margin-bottom: 30px;
}

/* Main Layout */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-main {
    background: white;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 40px;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Auth Section */
.auth-section {
    margin-bottom: 40px;
}

.auth-section h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--mapaseo-dark);
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Social Login */
.social-login {
    margin-bottom: 20px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: white;
    color: var(--mapaseo-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    border-color: #4285F4;
    background: #F8F9FA;
}

.google-login-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E0E0E0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mapaseo-dark);
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mapaseo-primary);
}

.form-group input:disabled,
.form-group select:disabled {
    background: #F5F5F5;
    color: #999;
    cursor: not-allowed;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.cta-button {
    background: var(--mapaseo-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover:not(:disabled) {
    background: #236027;
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 18px;
    width: 100%;
    margin-top: 30px;
}

.cta-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Toggle Links */
.login-toggle, .register-toggle {
    text-align: center;
    margin-top: 20px;
}

.login-toggle a, .register-toggle a {
    color: var(--mapaseo-primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: var(--mapaseo-secondary);
    text-decoration: none;
    font-size: 14px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #E8F5E8 0%, #E3F2FD 100%);
    border-radius: 15px;
    border-left: 4px solid var(--mapaseo-primary);
}

.welcome-section h2 {
    font-family: 'Nunito', sans-serif;
    color: var(--mapaseo-primary);
    margin-bottom: 10px;
}

/* GMB Section */
.gmb-section {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #E0E0E0;
}

.gmb-section.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.gmb-section h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.gmb-input-group {
    margin-bottom: 30px;
}

.gmb-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mapaseo-dark);
}

.gmb-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
}

.help-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* GMB Help */
.gmb-help {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.gmb-help h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--mapaseo-primary);
    margin-bottom: 15px;
}

.gmb-help ol {
    margin: 0;
    padding-left: 20px;
}

.gmb-help li {
    margin-bottom: 8px;
}

/* Business Info */
.business-info h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--mapaseo-dark);
    margin-bottom: 20px;
}

/* Additional Services */
.additional-services {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #E0E0E0;
}

.additional-services.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.additional-services h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-option {
    position: relative;
}

.service-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card {
    display: block;
    padding: 25px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--mapaseo-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-option input:checked + .service-card {
    border-color: var(--mapaseo-primary);
    background: #F8FFF8;
}

.service-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.service-card h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--mapaseo-dark);
}

.service-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.service-price {
    display: inline-block;
    background: var(--mapaseo-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--mapaseo-dark);
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 15px;
}

.selected-plan h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    color: var(--mapaseo-primary);
    margin-bottom: 5px;
}

.plan-billing {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Plan Features */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.plan-features .check-icon {
    width: 16px;
    height: 16px;
    background: var(--mapaseo-success);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.plan-features .check-icon:before {
    content: "✓";
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Pricing Breakdown */
.pricing-breakdown {
    border-top: 1px solid #E0E0E0;
    padding-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-row.discount {
    color: var(--mapaseo-success);
    font-size: 14px;
}

.price-row.total {
    border-top: 1px solid #E0E0E0;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 16px;
}

.total-amount {
    color: var(--mapaseo-primary);
    font-size: 20px;
    font-weight: 700;
}

/* Additional Services Summary */
.additional-services-summary {
    margin: 15px 0;
}

.additional-services-summary .price-row {
    font-size: 14px;
    color: #666;
}

/* Guarantee */
.guarantee {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F8FFF8;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #E8F5E8;
}

.guarantee-icon {
    font-size: 24px;
    color: var(--mapaseo-success);
}

.guarantee-text strong {
    color: var(--mapaseo-success);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.security-badges img {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(100%);
}

/* Help Section */
.help-section {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.help-section h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--mapaseo-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.help-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mapaseo-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--mapaseo-secondary);
}

/* Icons */
.email-icon:before {
    content: "✉";
    font-size: 16px;
}

.phone-icon:before {
    content: "📞";
    font-size: 16px;
}

/* Continue Section */
.continue-section {
    border-top: 1px solid #E0E0E0;
    padding-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-sidebar {
        order: -1;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-main {
        padding: 25px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-line {
        width: 2px;
        height: 40px;
        margin: 10px 0;
    }
    
    .contact-options {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .checkout-content {
        padding: 20px 0;
    }
    
    .checkout-main,
    .order-summary {
        padding: 20px;
        margin: 0 10px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--mapaseo-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Success States */
.success-message {
    background: #E8F5E8;
    color: var(--mapaseo-success);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--mapaseo-success);
    margin: 20px 0;
}

/* Error States */
.error-message {
    background: #FFEBEE;
    color: var(--mapaseo-error);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--mapaseo-error);
    margin: 20px 0;
}

/* Animation for smooth transitions */
.auth-form,
.gmb-section,
.additional-services {
    transition: all 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}