/* assime-vendor-form.css */
.assime-vendor-registration,
.assime-vendor-update {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.registration-header,
.update-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.registration-header i,
.update-header i {
    font-size: 3.7rem;
    margin-bottom: 1rem;
    display: block;
}

.registration-header h2,
.update-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.9rem;
    font-weight: 600;
}

.registration-header p,
.update-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.3rem;
}

.vendor-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 2px solid #f0fdf4;
    border-radius: 10px;
    background: #f8fffa;
}

.form-section h3 {
    color: #15803d;
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    width: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-icon {
    position: absolute;
    left: 0.75rem;
    top: 2.5rem;
    color: #22c55e;
    font-size: 1.2rem;
}

.url-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    overflow: hidden;
}

.url-prefix {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 500;
    border-right: 2px solid #d1fae5;
    white-space: nowrap;
}

.url-input input {
    border: none !important;
    padding-left: 1rem !important;
}

.url-input input:focus {
    box-shadow: none !important;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

.checkbox-group label {
    margin-bottom: 0;
    line-height: 1.4;
}

.checkbox-group a {
    color: #22c55e;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

#formMessages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.message-success {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    color: #15803d;
}

.message-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .assime-vendor-registration,
    .assime-vendor-update {
        margin: 1rem;
        border-radius: 10px;
    }
    
    .registration-header,
    .update-header {
        padding: 2rem 1.5rem;
    }
    
    .vendor-form {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        text-align: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Animation de chargement */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Styles Canada et SMS */
.canada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 1.7rem;
}

.phone-verification {
    border: 2px solid #d1fae5;
    border-radius: 10px;
    padding: 1.5rem;
    background: #f8fffa;
}

.phone-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #dcfce7;
    border: 2px solid #22c55e;
    border-radius: 8px;
    color: #15803d;
    font-weight: 600;
    white-space: nowrap;
}

.phone-input-container input {
    flex: 1;
    padding-left: 1rem !important;
}

.btn-sms {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.7rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sms:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-sms:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.phone-hint, .zip-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: #6b7280;
    font-style: italic;
}

.sms-verification-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #d1fae5;
}

.code-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-input-container input {
    flex: 1;
}

.btn-verify {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-verify:hover {
    background: #2563eb;
}

.btn-resend {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-resend:hover {
    background: #d97706;
}

.sms-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: #ef4444;
    font-weight: 500;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 1.9rem;
}

.verification-status.verified {
    background: #d1fae5;
    border-color: #22c55e;
    color: #15803d;
}

/* Format code postal */
input:valid {
    border-color: #22c55e !important;
}

input:invalid {
    border-color: #ef4444 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-prefix {
        justify-content: center;
    }
    
    .code-input-container {
        flex-direction: column;
    }
}



/* Style css pour le code promo  */
.form-group .promo-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.fa-ticket-alt.form-icon {
    color: #004d00;
}



/* Styles pour l'URL de la boutique g?n?r?e automatiquement */
.url-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-prefix {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

#store_url {
    flex: 1;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s;
}

#store_url.readonly {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

#store_url.editable {
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-edit-url {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.btn-edit-url:hover {
    background: #2563eb;
}

.btn-edit-url:active {
    background: #1d4ed8;
}

.btn-edit-url i {
    font-size: 0.875rem;
}

.url-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    transition: color 0.2s;
}

.url-hint.success {
    color: #22c55e;
}

.url-hint.error {
    color: #ef4444;
}

.url-hint.warning {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .url-input {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .url-prefix {
        border-radius: 6px;
        text-align: center;
    }
    
    #store_url {
        border-radius: 6px;
    }
    
    .btn-edit-url {
        width: 100%;
        justify-content: center;
    }
}