/* PDE/OEL Form Styles */

.pde-oel-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.pde-oel-form-container * {
    box-sizing: border-box;
}

/* Side by Side Layout */
.side-by-side-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.substance-section,
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.substance-section h3,
.form-section h3 {
    font-size: 1.5rem;
    color: #0f4c81;
    margin-bottom: 1rem;
    font-weight: 600;
}

.substance-section > p,
.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Search Box */
.pde-oel-search {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #0f4c81;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pde-oel-search:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Substance List */
.substance-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.substance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 0.5px solid #ddd;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.substance-item:hover {
    background: #e3f2fd;
    border-color: #0f4c81;
    color: #0f4c81;
}

.substance-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: #0f4c81;
}

/* Substance Count */
.substance-count-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.substance-count {
    background: #0f4c81;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Form Styles */
.pde-oel-inquiry-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f4c81;
    font-weight: 600;
    font-size: 0.95rem;
}

.pde-oel-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #0f4c81;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pde-oel-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Selected Substances Display */
.pde-oel-selected-substances {
    background: white;
    border: 1px solid #0f4c81;
    border-radius: 4px;
    padding: 1rem;
    min-height: 60px;
    margin-bottom: 1rem;
}

.pde-oel-selected-substances span {
    display: inline-block;
    background: #0f4c81;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.pde-oel-selected-substances button {
    background: none;
    border: none;
    color: white;
    margin-left: 0.4rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0;
}

/* Buttons */
.pde-oel-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
}

.pde-oel-btn-primary {
    background: #0f4c81;
    color: white;
    border: 2px solid #0f4c81;
}

.pde-oel-btn-primary:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    transform: translateY(-2px);
}

/* Success Message */
.pde-oel-success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .side-by-side-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .substance-section,
    .form-section {
        padding: 1.5rem;
    }

    .substance-section h3,
    .form-section h3 {
        font-size: 1.2rem;
    }

    .substance-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: 400px;
    }
}

/* Scrollbar Styling */
.substance-list::-webkit-scrollbar {
    width: 8px;
}

.substance-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.substance-list::-webkit-scrollbar-thumb {
    background: #0f4c81;
    border-radius: 10px;
}

.substance-list::-webkit-scrollbar-thumb:hover {
    background: #1a73e8;
}

/* Error Messages */
.pde-oel-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}
