/* PA Compliance Form Frontend Styles - Modern Pantone Design v3.0 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pa-compliance-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    padding: 20px;
}

.pa-compliance-container > div {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.pa-compliance-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pa-compliance-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.pa-compliance-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.pa-compliance-header p {
    opacity: 0.95;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.pa-compliance-content {
    padding: 35px;
    animation: fadeIn 0.4s ease;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 26px;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-image-slice: 1;
    font-weight: 800;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.flow-step {
    flex: 1;
    min-width: 140px;
    padding: 20px;
    margin: 0 5px;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.flow-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.flow-step.new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flow-step.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flow-step::after {
    content: "→";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
}

.flow-step:last-child::after {
    content: "";
}

.checkpoint-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
}

.checkpoint-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkpoint-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.checkpoint-table td strong {
    color: #667eea;
    font-weight: 700;
}

.checkpoint-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.checkpoint-table tr:last-child td {
    border-bottom: none;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 12px 12px 0 0;
}

.form-section h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    flex: 0 0 48%;
    display: flex;
    align-items: flex-start;
}

.checkbox-item input {
    margin-right: 8px;
    margin-top: 3px;
    width: auto;
}

.checkbox-item label {
    font-weight: normal;
    font-size: 13px;
    margin-bottom: 0;
}

.alert-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: none;
    border-left: 5px solid #ffc107;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.alert-box strong {
    color: #856404;
    font-weight: 800;
}

/* Behavior Alert - Viva Magenta */
.form-section .alert-box.behavior-alert {
    background: linear-gradient(135deg, #ffe5e8 0%, #ffd6dd 100%);
    border-left: 5px solid #f5576c;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.25);
}

.form-section .alert-box.behavior-alert strong {
    color: #dc143c;
}

.recommendation {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 5px solid #4facfe;
    padding: 18px 25px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.15);
    font-weight: 500;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Base button styles */
.button {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.button-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.button-secondary:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.button-secondary:active {
    transform: translateY(0);
}

.button-secondary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Auto-fill Button - Mint Green */
.button-autofill {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.button-autofill:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

/* Multi-Teammate Section */
.multi-teammate-section {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    border: none;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.2);
    position: relative;
    overflow: hidden;
}

.multi-teammate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.multi-teammate-section h3 {
    color: #4facfe;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multi-teammate-section .alert-box {
    background: linear-gradient(135deg, #cfe2ff 0%, #e7f3ff 100%);
    border-left-color: #4facfe;
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.15);
}

.evaluated-teammates-list {
    background: white;
    border: 2px solid #4facfe;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.evaluated-teammate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 10px;
}

.evaluated-teammate-item:last-child {
    margin-bottom: 0;
}

#form-message {
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

#form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

#form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Loading Spinner */
.pa-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pa-compliance-container {
        padding: 10px;
    }
    
    .pa-compliance-container > div {
        border-radius: 16px;
    }
    
    .pa-compliance-header h1 {
        font-size: 24px;
    }
    
    .pa-compliance-header p {
        font-size: 14px;
    }
    
    .pa-compliance-content {
        padding: 20px;
    }
    
    .flow-diagram {
        flex-direction: column;
        padding: 20px;
    }
    
    .flow-step {
        width: 100%;
        margin: 5px 0;
    }
    
    .flow-step::after {
        content: "↓";
        right: auto;
        top: auto;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .flow-step:last-child::after {
        content: "";
    }
    
    .checkpoint-table {
        font-size: 13px;
    }
    
    .checkpoint-table th,
    .checkpoint-table td {
        padding: 10px 8px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .checkbox-item {
        flex: 0 0 100%;
    }
    
    .submit-button {
        width: 100%;
        padding: 16px 30px;
    }
    
    .button-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    
    .button-autofill {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Print Styles */
@media print {
    .pa-compliance-container {
        background: white;
        padding: 0;
    }
    
    .submit-button,
    .button-secondary,
    .button-autofill {
        display: none;
    }
    
    .flow-diagram,
    .checkpoint-table,
    .form-section {
        page-break-inside: avoid;
    }
}
