* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4CAF50;
}

.status-dot.offline {
    background: #f44336;
}

.business-hours {
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
    border-left: 4px solid #2196F3;
}

.form-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-container h2 {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group.required > label::after {
    content: " *";
    color: #f44336;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group small {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* Phone input styling */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.phone-prefix {
    background: #f0f0f0;
    padding: 10px 15px;
    font-weight: bold;
    color: #555;
    border-right: 1px solid #ddd;
}

.phone-input-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.phone-input-wrapper input:focus {
    box-shadow: none !important;
}

.phone-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Checkbox group styling */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-group label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label span {
    font-weight: normal;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-submit,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background: #e0e0e0;
}

.response-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 5px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-success {
    background: #e8f5e9;
    border: 1px solid #4CAF50;
}

.response-error {
    background: #ffebee;
    border: 1px solid #f44336;
}

.response-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.info-panel {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-panel h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.info-panel ul {
    list-style: none;
    margin-bottom: 20px;
}

.info-panel ul li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.error-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.error-codes p {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #ff9800;
    font-size: 14px;
}

.response-details {
    margin-top: 15px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    min-width: 150px;
    color: #555;
}

.detail-value {
    color: #333;
    word-break: break-all;
}

.detail-value.highlight {
    font-weight: 700;
    font-size: 18px;
    color: #4CAF50;
}

.detail-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #ddd;
}

.detail-section h5 {
    color: #555;
    margin-bottom: 10px;
}

.detail-section.warnings {
    background: #fff3e0;
    padding: 10px;
    border-radius: 5px;
}

.full-response {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.full-response summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
}

.full-response pre {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.bid-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bid-card.rejected {
    border-left: 4px solid #f44336;
}

.bid-amount {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 15px;
}

.bid-phone {
    margin-bottom: 15px;
}

.phone-call-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
}

.phone-call-btn:hover {
    background: #388E3C;
}

.phone-full {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.bid-sip {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    word-break: break-all;
}

.bid-sip code {
    font-size: 12px;
    color: #333;
}

.bid-details {
    margin-bottom: 15px;
}

.bid-details .detail-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bid-details .detail-label {
    font-weight: 600;
    min-width: 120px;
    color: #555;
}

.bid-details .detail-value {
    color: #333;
}

.bid-terms {
    background: #fff3e0;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.bid-terms h5 {
    margin-bottom: 8px;
    color: #e65100;
}

.term-item {
    padding: 4px 0;
    font-size: 14px;
}

.term-code {
    background: #e65100;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.bid-warnings {
    background: #fff9c4;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.bid-warnings h5 {
    margin-bottom: 8px;
    color: #f57f17;
}

.warning-item {
    padding: 4px 0;
    font-size: 14px;
    color: #666;
}

.reject-reason {
    font-size: 18px;
    font-weight: 600;
    color: #f44336;
    margin-bottom: 15px;
}

.error-code-detail {
    background: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.possible-reasons {
    margin-top: 15px;
    font-size: 14px;
}

.possible-reasons ul {
    margin-left: 20px;
    margin-top: 5px;
}

.possible-reasons li {
    padding: 3px 0;
}

.response-details {
    margin-top: 15px;
}

.full-response {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.full-response summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
}

.full-response pre {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .container {
        padding: 10px;
    }
    
    .header,
    .form-container,
    .info-panel {
        padding: 20px;
    }
}