/* Enhanced form feedback styles */

/* Success message styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #28a745;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    animation: slideDown 0.5s ease-out forwards;
    display: flex;
    align-items: center;
}

.success-message::before {
    content: '✓';
    font-size: 20px;
    margin-right: 10px;
    color: #28a745;
    font-weight: bold;
}

/* Error message styling */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #dc3545;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    animation: slideDown 0.5s ease-out forwards;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: '!';
    font-size: 20px;
    margin-right: 10px;
    color: #dc3545;
    font-weight: bold;
}

/* Animation for messages */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sticky message for mobile */
@media screen and (max-width: 768px) {
    .success-message,
    .error-message {
        position: sticky;
        top: 70px;
        z-index: 1000;
        margin: 0 -15px 20px -15px;
        border-radius: 0;
        border-left: none;
        border-bottom: 5px solid;
    }
    
    .success-message {
        border-bottom-color: #28a745;
    }
    
    .error-message {
        border-bottom-color: #dc3545;
    }
    
    /* Ensure message is visible */
    .form-section:first-child {
        padding-top: 60px;
    }
}

/* Order confirmation styling */
.confirmation-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--strawberry);
}

.order-summary h4 {
    color: var(--strawberry);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.order-summary p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.order-summary p strong {
    color: var(--cocoa);
}

/* Email buttons styling */
.email-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.email-buttons button {
    min-width: 200px;
    transition: all 0.3s ease;
}

.email-buttons button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.email-buttons button i {
    margin-right: 8px;
}

/* Alternative instructions styling */
.alternative-instructions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
}

.email-note {
    margin-bottom: 10px;
    color: #6c757d;
}

.alternative-instructions ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.alternative-instructions li {
    margin-bottom: 8px;
}

.alternative-instructions a {
    color: var(--strawberry);
    text-decoration: none;
    transition: color 0.2s ease;
}

.alternative-instructions a:hover {
    color: var(--honey);
    text-decoration: underline;
}

/* Mobile specific styles */
@media screen and (max-width: 768px) {
    .confirmation-container {
        padding: 15px;
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .email-buttons {
        flex-direction: column;
    }
    
    .email-buttons button {
        width: 100%;
    }
    
    .order-summary {
        padding: 15px;
    }
}
