/* BP Metals Employment Application Styles */

.bp-employment-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Messages */
.bp-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
}

.bp-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bp-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* EEO Statement */
.bp-eeo-statement {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    border-left: 4px solid #c41230;
}

.bp-eeo-statement p {
    margin: 0 0 10px;
}

.bp-eeo-statement p:last-child {
    margin-bottom: 0;
}

/* Form Sections */
.bp-form-section {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bp-form-section h2 {
    color: #c41230;
    font-size: 20px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41230;
}

.bp-form-section h3 {
    color: #333;
    font-size: 16px;
    margin: 15px 0 10px;
    font-weight: 600;
}

.bp-section-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Form Elements */
.bp-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.bp-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.bp-form-group.bp-flex-2 {
    flex: 2;
}

.bp-form-group.bp-small {
    flex: 0 0 100px;
    min-width: 100px;
}

.bp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.bp-employment-form input[type="text"],
.bp-employment-form input[type="email"],
.bp-employment-form input[type="tel"],
.bp-employment-form input[type="date"],
.bp-employment-form textarea,
.bp-employment-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.bp-employment-form input:focus,
.bp-employment-form textarea:focus,
.bp-employment-form select:focus {
    outline: none;
    border-color: #c41230;
    box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.1);
}

.bp-employment-form textarea {
    resize: vertical;
    min-height: 60px;
}

.bp-required {
    color: #c41230;
}

.bp-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Radio and Checkbox Groups */
.bp-radio-group,
.bp-checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.bp-radio-group.bp-inline,
.bp-checkbox-group.bp-inline {
    display: inline-flex;
}

.bp-radio-group label,
.bp-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.bp-radio-group input,
.bp-checkbox-group input {
    margin: 0;
    width: auto;
}

/* Employer Blocks */
.bp-employer-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.bp-employer-block h3 {
    margin-top: 0;
    color: #c41230;
}

/* Education Table */
.bp-education-table {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.bp-edu-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.bp-edu-row:last-child {
    border-bottom: none;
}

.bp-edu-row.bp-edu-header {
    background: #333;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.bp-edu-cell {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.bp-edu-cell:last-child {
    border-right: none;
}

.bp-edu-cell.bp-edu-label {
    flex: 0 0 140px;
    background: #f5f5f5;
    font-weight: 500;
    font-size: 13px;
}

.bp-edu-cell input,
.bp-edu-cell select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Reference Table */
.bp-reference-table {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}

.bp-ref-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.bp-ref-row:last-child {
    border-bottom: none;
}

.bp-ref-row.bp-ref-header {
    background: #333;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.bp-ref-cell {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.bp-ref-cell:last-child {
    border-right: none;
}

.bp-ref-cell input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Availability Grid */
.bp-availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.bp-avail-day {
    text-align: center;
}

.bp-avail-day label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.bp-avail-day input {
    width: 100%;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

/* Agreement Section */
.bp-agreement-section {
    background: #fff9f9;
}

.bp-agreement-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.bp-agreement-item label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.bp-agreement-item input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.bp-agreement-item span {
    font-size: 13px;
    color: #333;
}

/* Signature Section */
.bp-signature-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #c41230;
}

.bp-signature-input {
    font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif !important;
    font-size: 24px !important;
    padding: 15px !important;
    background: #fffef5 !important;
}

/* Form Actions */
.bp-form-actions {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-radius: 8px;
    margin-top: 20px;
}

.bp-btn-submit,
.bp-btn-reset {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.bp-btn-submit {
    background: #c41230;
    color: white;
}

.bp-btn-submit:hover:not(:disabled) {
    background: #a00f28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 18, 48, 0.3);
}

.bp-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bp-btn-reset {
    background: #6c757d;
    color: white;
}

.bp-btn-reset:hover {
    background: #5a6268;
}

/* Form Message */
.bp-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.bp-form-message.bp-success {
    background-color: #d4edda;
    color: #155724;
}

.bp-form-message.bp-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading State */
.bp-loading {
    position: relative;
    pointer-events: none;
}

.bp-loading::after {
    content: 'Submitting...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive */
@media (max-width: 768px) {
    .bp-form-section {
        padding: 15px;
    }

    .bp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .bp-form-group,
    .bp-form-group.bp-flex-2,
    .bp-form-group.bp-small {
        flex: none;
        width: 100%;
        min-width: 100%;
    }

    .bp-education-table,
    .bp-reference-table {
        overflow-x: auto;
    }

    .bp-edu-row,
    .bp-ref-row {
        min-width: 500px;
    }

    .bp-availability-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bp-form-actions {
        flex-direction: column;
    }

    .bp-btn-submit,
    .bp-btn-reset {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bp-availability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
