/**
 * Styles pour le formulaire de commande Astro Maman
 * Charte graphique : #E8E8E8, #738B83, #D9BEC9
 */

.astro-maman-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(115, 139, 131, 0.15);
}

.astro-maman-header {
    text-align: center;
    margin-bottom: 40px;
}

.astro-maman-header h2 {
    color: #738B83;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.astro-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Formulaire */
.astro-maman-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-group .required {
    color: #D9BEC9;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #738B83;
    box-shadow: 0 0 0 3px rgba(115, 139, 131, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Rangée de formulaire */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group.half {
    flex: 1;
}

/* Info démo */
.form-info {
    background: linear-gradient(135deg, #E8E8E8 0%, #D9BEC9 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.form-info p {
    margin: 5px 0;
    color: #333;
}

.form-info strong {
    color: #738B83;
    font-size: 18px;
}

/* Bouton de soumission */
.form-actions {
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #738B83 0%, #5a6f68 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 139, 131, 0.3);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Messages */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

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

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

/* Info prix */
.form-info-price {
    background: linear-gradient(135deg, #738B83 0%, #5a6f68 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(115, 139, 131, 0.3);
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.price-details {
    font-size: 13px;
    opacity: 0.9;
}

/* Features list */
.astro-features {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature {
    background: #f8f8f8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* Sécurité */
.form-security {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-icon {
    font-size: 18px;
}

.security-text {
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .astro-maman-container {
        padding: 25px;
        margin: 20px auto;
    }

    .astro-maman-header h2 {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 25px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 20px;
    }

    .astro-features {
        flex-direction: column;
        align-items: center;
    }

    .price-amount {
        font-size: 36px;
    }
}