/* Custom styles for Vertex Home Form Page - Vertex Service Partners Branding */

/* Brand variables - vertexservicepartners.com palette */
@import url('brand.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: white !important;
    letter-spacing: -0.025em;
}

/* Form Header Icon */
.form-header-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.form-header-icon i {
    font-size: 2rem;
    color: white;
}

/* Form Section Card Styles */
.form-section-card {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-section-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.form-section-card:last-child {
    margin-bottom: 0;
}

.section-header {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.2rem;
    color: white;
}

.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.section-content {
    padding: 2rem;
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--background-white);
    color: var(--text-dark);
    font-weight: 400;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
    background-color: var(--background-white);
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: var(--accent-color);
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Checkbox and Radio Styles */
.form-check-input {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.form-check-label i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.form-check-inline {
    margin-right: 1.5rem;
}

/* Button Styles - smaller, sharper */
.btn {
    border-radius: 2px;
    font-weight: 600;
    padding: 5px 12px;
    transition: all 0.15s ease;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    align-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

.btn-primary:active {
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--text-dark);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg);
    background: #5ab86d;
}

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

/* Icon Styles */
.text-primary {
    color: var(--accent-color) !important;
}

.bi {
    font-size: 1.1em;
}

/* Footer */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: white;
}

/* Spinner Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #2d7a4f 100%);
    color: white;
}

.alert-danger {
    background: var(--danger-color);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e6b020 100%);
    color: white;
}

.alert-info {
    background: var(--accent-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .form-check-inline {
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .section-content {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-check-inline {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Animation for cards entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section-card {
    animation: fadeInUp 0.6s ease-out;
}

.form-section-card:nth-child(1) { animation-delay: 0.1s; }
.form-section-card:nth-child(2) { animation-delay: 0.2s; }
.form-section-card:nth-child(3) { animation-delay: 0.3s; }
.form-section-card:nth-child(4) { animation-delay: 0.4s; }
.form-section-card:nth-child(5) { animation-delay: 0.5s; }
.form-section-card:nth-child(6) { animation-delay: 0.6s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: none;
}

/* Loading state styles */
.btn-loading {
    pointer-events: none;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Enhanced form styling */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    transform: translateY(-1px);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    transform: translateY(-1px);
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .footer {
        display: none !important;
    }
    
    .form-section-card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
        break-inside: avoid;
    }
    
    .section-header {
        background: var(--background-light) !important;
    }
    
    .form-control,
    .form-select {
        border: 1px solid var(--border-color) !important;
        background: white !important;
    }
}

/* Vertex Service Partners specific branding elements */
.vertex-header {
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.vertex-subtitle {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Enhanced form section styling */
.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

/* Enhanced button interactions */
.btn:active {
    transform: translateY(0);
}

/* Enhanced form group styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Enhanced textarea styling */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Enhanced select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Enhanced checkbox and radio styling */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

/* Enhanced progress bar styling */
.progress-container {
    margin-bottom: 2rem;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
} 