:root {
    --primary: #46B649;
    --primary-dark: #43a047;
    --text: #ffffff;
    --text-secondary: #8D8D8D;
    --bg: #111111;
    --border: #2d2d2d;
    --card-bg: #1e1e1e;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 20px 0;
}

.logo {
    height: 40px;
    width: auto;
}

/* Back button */
.back-button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 15px;
    padding: 5px;
}

.back-button:hover {
    color: var(--primary);
}

.form-header-container {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

/* Plans Page */
.plans-page {
    padding: 20px 0;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header span {
    color: var(--primary);
}

.header p {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.plans-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.plan-card {
    width: 325px;
    margin-bottom: 40px;
}

.plan-top {
    height: 310px;
    border-radius: 25px;
    background-color: var(--card-bg);
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.plan-top.mvdp {
    background-color: var(--primary);
}

.plan-top.ptass h2,
.plan-top.ptass h4 {
    color: var(--primary);
}

.plan-top h2 {
    font-size: 24px;
    font-weight: 600;
}

.plan-top h4 {
    font-size: 32px;
    font-weight: 700;
}

.plan-top p {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-top.mvdp p,
.plan-top.mvdp h2,
.plan-top.mvdp h4 {
    color: white;
}

.plan-button {
    display: block;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    background-color: black;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    margin-top: 15px;
}

.plan-button:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 182, 73, 0.3);
}

.plan-button.ptass {
    background-color: var(--primary);
    border-color: black;
}

.plan-button.ptass:hover {
    background-color: black;
    color: white;
}

.plan-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.plan-features {
    width: 90%;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    list-style-type: disc;
    margin-left: 20px;
}

.plan-features li.disabled {
    color: var(--text-secondary);
}

.badge {
    position: absolute;
    top: 24px;
    right: 30px;
    font-size: 12px;
    color: white;
}

/* Form Page */
.form-page {
    min-height: 100vh;
    padding: 20px 0;
}

.form-container {
    max-width: 768px;
    margin: 0 auto;
    background-color: transparent;
}

.form-header {
    padding: 10px 0;
}

.form-header h1 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.form-header h1 .logo {
    height: 30px;
    margin-right: 10px;
}

/* Add these to your existing CSS */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Toast styles */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    max-width: calc(100% - 40px);
    width: max-content;
}

.toast.success {
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast-icon {
    display: flex;
    align-items: center;
}

.toast-message {
    font-size: 14px;
}

/* Loading button styles */
.submit-button .animate-spin {
    margin-right: 8px;
}

/* Ajoutez ceci à votre CSS existant */
.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button .animate-spin {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.submit-button.loading {
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

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

/* Améliorez le toast */
.toast {
    font-size: 14px;
    padding: 12px 20px;
    min-width: 300px;
    max-width: 90%;
    animation: fadeIn 0.3s ease-out;
}

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

.toast svg {
    width: 18px;
    height: 18px;
}

.plan-badge {
    margin-left: 8px;
    font-size: 14px;
    background-color: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 9999px;
}

.form-header p {
    font-size: 18px;
    color: #a1a1a1;
    margin-left: 8px;
}

.info-box {
    margin-bottom: 32px;
    background-color: transparent;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-box p {
    font-size: 14px;
    color: #a1a1a1;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    color: var(--primary);
    margin-right: 8px;
    flex-shrink: 0;
}

.form-section {
    padding: 24px 0;
}

.form-grid {
    display: grid;
    gap: 24px;
}

.md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-field {
    margin-bottom: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #a1a1a1;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.required {
    color: var(--error);
    margin-left: 4px;
}

.optional {
    color: #a1a1a1;
    font-size: 12px;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: transparent;
    padding: 12px 16px;
    color: var(--text);
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(70, 182, 73, 0.2);
}

.form-textarea {
    min-height: 120px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: transparent;
    padding: 12px 16px;
    color: var(--text);
    transition: all 0.2s;
}

.form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(70, 182, 73, 0.2);
}

.form-message {
    font-size: 14px;
    color: var(--error);
    margin-top: 4px;
}

.form-hint {
    font-size: 12px;
    color: #a1a1a1;
    margin-top: 4px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #a1a1a1;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.asset-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.asset-card:hover {
    border-color: rgba(70, 182, 73, 0.5);
    background-color: rgba(70, 182, 73, 0.05);
}

.asset-card.selected {
    border-color: var(--primary);
    background-color: rgba(70, 182, 73, 0.1);
}

.asset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    margin-bottom: 12px;
    background-color: #2d2d2d;
    color: #a1a1a1;
}

.asset-card.selected .asset-icon {
    color: var(--primary);
    background-color: rgba(70, 182, 73, 0.2);
}

.asset-label {
    font-size: 14px;
    font-weight: 500;
    color: #a1a1a1;
}

.asset-card.selected .asset-label {
    color: var(--primary);
}

.asset-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--primary);
}

.input-icon {
    position: absolute;
    top: 12px;
    right: 12px;
}

.input-icon.check {
    color: rgba(70, 182, 73, 0.4);
}

.input-icon.alert {
    color: rgba(239, 68, 68, 0.4);
}

.form-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.submit-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.submit-button {
    width: 50%;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    /* font-weight: 600; */
    padding: 14px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 182, 73, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-links {
    text-align: center;
    font-size: 14px;
    color: #a1a1a1;
    margin-top: 16px;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
}

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

.copyright {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #a1a1a1;
}

/* Country Dropdown */
.country-dropdown {
    position: relative;
    width: 100%;
}

.country-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text);
    appearance: none;
    cursor: pointer;
}

.country-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(70, 182, 73, 0.2);
}

.country-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Toast */
.toast {
    background-color: #1e1e1e;
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.success {
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .plans-container {
        justify-content: center;
    }
    
    /* Center logo for tablet */
    .main-header {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 36px;
    }

    .asset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Center logo for smaller tablets */
    .main-header {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 28px;
    }

    .header p {
        font-size: 16px;
    }

    .asset-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        width: 100%;
    }

    .plan-top {
        height: auto;
        gap: 16px;
    }
    
    /* Center logo for mobile */
    .main-header {
        display: flex;
        justify-content: center;
    }
}