/* Additional Custom Styles for BP Forms */
/* This file supplements the styles in layout.ejs with BP-specific enhancements */

/* BP Brand Colors */
:root {
    --bp-green: #009A44;
    --bp-green-dark: #007a35;
    --bp-dark: #1a1a1a;
    --bp-gray: #666;
    --bp-light-gray: #f8f8f8;
    --bp-border: #e5e5e5;
}

/* Custom background for special pages if needed */
.custom-page-background {
    background-color: var(--bp-green);
    background-image: url('/images/Cassia%20Compression%20Project_%20Offshore%20Trinidad_LargeImage_m327435.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Required field indicator */
.required-field::after {
    content: " *";
    color: #c62828;
    font-weight: 600;
}

/* Form sections for better organization */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bp-border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: var(--bp-dark);
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

.form-section h3 {
    color: var(--bp-dark);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    margin-top: 25px;
}

/* Success message styling */
.success-message {
    background-color: #e8f5e9;
    border-left: 3px solid var(--bp-green);
    color: #2e7d32;
    padding: 20px;
    border-radius: 3px;
    margin-bottom: 30px;
}

/* Error message styling */
.error-message {
    background-color: #ffebee;
    border-left: 3px solid #c62828;
    color: #c62828;
    padding: 20px;
    border-radius: 3px;
    margin-bottom: 30px;
}

/* Warning message styling */
.warning-message {
    background-color: #fff3e0;
    border-left: 3px solid #f57c00;
    color: #e65100;
    padding: 20px;
    border-radius: 3px;
    margin-bottom: 30px;
}

/* Loading state */
.form-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button variations */
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--bp-green);
    border: 2px solid var(--bp-green);
    text-decoration: none;
    border-radius: 3px;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--bp-green);
    color: #ffffff;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bp-dark);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Print styles */
@media print {
    .top-bar,
    .header,
    .breadcrumb,
    .footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }

    .form-container {
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
    }
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid var(--bp-green);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bp-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

