/* Universal Form Card Styling - Premium Design System */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-color: #e8eef7;
}

/* Form Card Container */
.form-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Individual Form Card */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Form Card Header with Icon Number */
.form-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.form-card-header.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-card-header.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.form-card-header.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.form-card-header.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.form-card-header.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.form-card-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.form-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Form Card Body */
.form-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-card-divider {
    height: 2px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.form-card-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Form Card Button */
.form-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: 100%;
}

.form-card-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-card-button.primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.form-card-button.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.form-card-button.success:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.form-card-button.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.form-card-button.info:hover {
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    transform: translateY(-2px);
}

.form-card-button.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.form-card-button.warning:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.form-card-button i {
    font-size: 0.9rem;
}

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.page-header-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Inline Form Styling */
.form-container-inline {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-container-inline .form-group {
    margin-bottom: 1.5rem;
}

.form-container-inline .form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
}

.form-container-inline .form-control,
.form-container-inline .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-container-inline .form-control:focus,
.form-container-inline .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Button Group */
.form-button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .form-button-group {
        flex-direction: column;
    }

    .form-button-group button {
        width: 100%;
    }
}

/* Steps Indicator */
.form-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.form-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    font-weight: 700;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-step.active .form-step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.form-step-divider {
    flex: 0 0 auto;
    height: 2px;
    background: var(--border-color);
}

.form-step:last-child .form-step-divider {
    display: none;
}

.form-step-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.form-step.active .form-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 576px) {
    .page-header-section {
        padding: 2rem 1rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .page-header-section h1 {
        font-size: 1.5rem;
    }

    .form-card-number {
        font-size: 2rem;
    }

    .form-card-body {
        padding: 1rem;
    }

    .form-steps {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-step-divider {
        display: none !important;
    }
}
