/**
 * MGK Affiliates Public Styles - Bootstrap Enhanced
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


/* Global Styles */

.mgk-affiliate-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* Custom Bootstrap Overrides */

:root {
    --mgk-primary: #0d6efd;
    --mgk-primary-hover: #0b5ed7;
    --mgk-secondary: #6c757d;
    --mgk-success: #198754;
    --mgk-danger: #dc3545;
    --mgk-warning: #ffc107;
    --mgk-info: #0dcaf0;
    --mgk-light: #f8f9fa;
    --mgk-dark: #212529;
}


/* Form Container Spacing */

.mgk-affiliate-form-container {
    margin: 3rem 0;
}


/* Card Enhancements */

.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}


/* Form Controls */

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mgk-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


/* Button Styles */

.btn-primary {
    background: linear-gradient(135deg, var(--mgk-primary) 0%, #0056b3 100%);
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--mgk-primary-hover) 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.4);
}


/* Alert Enhancements */

.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
}


/* Responsive Design */

@media (max-width: 768px) {
    .mgk-affiliate-form-container {
        margin: 2rem 0;
    }
    .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Animation Classes */

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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


/* Loading States */

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


/* Form Validation */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--mgk-danger);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--mgk-success);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}


/* Accessibility */

.form-label .text-danger {
    font-weight: 700;
}


/* Print Styles */

@media print {
    .btn,
    .alert {
        display: none !important;
    }
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
