/* erp-form.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.erp-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    font-family: Inter, sans-serif;
    color: #111827;
    max-width: 1100px;
    margin: 0 auto;
}

.erp-main-col {
    flex: 1;
    min-width: 0;
}

.erp-sidebar-col {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.erp-white-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.erp-title {
    font-size: 28px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: #111827;
}

.erp-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F8FAFC;
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
    margin-bottom: 24px;
}

.erp-notice-error {
    background: #FEF2F2;
    color: #991B1B;
}

.erp-notice svg {
    flex-shrink: 0;
}

.erp-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.erp-col-span-2 {
    grid-column: span 2;
}

.erp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.erp-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    font-family: Inter, sans-serif;
    color: #111827;
    background: #FFFFFF;
    transition: all 0.2s;
    box-sizing: border-box;
}

.erp-input::placeholder {
    color: #6B7280;
}

.erp-input:focus {
    outline: none;
    border-color: #25367B;
    box-shadow: 0 0 0 3px rgba(37, 54, 123, 0.1);
}

.erp-input:disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

select.erp-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111827%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

.erp-hint {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
}

.erp-section {
    margin-bottom: 32px;
}

.erp-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    color: #111827;
}

.erp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.erp-pill {
    position: relative;
    cursor: pointer;
}

.erp-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.erp-pill span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s;
    user-select: none;
    background: #FFFFFF;
}

.erp-pill:hover span {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.erp-pill input:checked + span {
    background: #111827;
    color: #FFFFFF;
    border-color: #111827;
}

.erp-pill-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.erp-pill-disabled:hover span {
    background: #FFFFFF;
    border-color: #E5E7EB;
}

.erp-relay-section {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px dashed #D1D5DB;
}

.erp-relay-participant {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.erp-relay-participant h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.erp-error {
    display: block;
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.erp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
}

.erp-checkbox-label input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #25367B;
}

.erp-checkbox-label a {
    color: #25367B;
    text-decoration: underline;
}

/* Sidebar Styles */
.erp-summary-card {
    background: #25367B;
    border-radius: 20px;
    padding: 32px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(37, 54, 123, 0.15);
    margin-bottom: 20px;
}

.erp-summary-card h2 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 32px;
}

.erp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.erp-summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 24px 0;
}

.erp-summary-total {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 32px;
}

.erp-submit-btn {
    width: 100%;
    background: #FFFFFF !important;
    color: #111827 !important;
    border: none;
    border-radius: 99px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.erp-submit-btn:disabled,
.erp-submit-btn.is-loading {
    opacity: 0.7;
    cursor: wait !important;
}

.erp-submit-btn:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.erp-stats-card {
    background: #F0F4FA;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.erp-stat-value {
    color: #25367B;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.erp-stat-label {
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

/* Success Banner */
.erp-success-banner {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.erp-success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .erp-layout {
        flex-direction: column;
    }
    .erp-sidebar-col {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .erp-white-box {
        padding: 24px;
    }
    .erp-fields-grid {
        grid-template-columns: 1fr;
    }
    .erp-col-span-2 {
        grid-column: span 1;
    }
}
