/* Agent Search Wrapper */
.agent-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Container */
.agent-search-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search Input */
.agent-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
    transition: box-shadow 0.3s ease;
}

.agent-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.agent-search-input::placeholder {
    color: #999;
}

/* Search Button */
.agent-search-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a2e52;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.agent-search-btn:hover {
    background: #152441;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.agent-search-btn:active {
    transform: translateY(0);
}

/* Loading State */
.agent-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

.agent-loading p {
    margin: 0;
}

/* Error Messages */
.agent-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.agent-error p {
    margin: 0;
}

/* Results Container */
.agent-results {
    margin-top: 30px;
}

/* Agent Details Card */
.agent-details-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.agent-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* Agent Details Grid */
.agent-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.agent-detail-item {
    padding: 20px 25px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.agent-detail-item:last-child {
    border-right: none;
}

.agent-detail-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.agent-detail-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-detail-value {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

/* Additional Info Section */
.agent-additional-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.agent-additional-info p {
    margin: 10px 0;
    font-size: 15px;
    color: #555;
}

.agent-additional-info strong {
    color: #000;
    font-weight: 600;
}

.agent-additional-info a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-additional-info a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-search-container {
        padding: 20px;
        flex-direction: column;
    }
    
    .agent-search-input {
        width: 100%;
        min-width: auto;
    }
    
    .agent-search-btn {
        width: 100%;
    }
    
    .agent-details-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-detail-item {
        border-right: none;
    }
    
    .agent-details-card {
        padding: 20px;
    }
    
    .agent-details-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .agent-search-wrapper {
        padding: 10px;
    }
    
    .agent-search-input,
    .agent-search-btn {
        font-size: 14px;
    }
    
    .agent-details-title {
        font-size: 20px;
    }
    
    .agent-detail-label {
        font-size: 12px;
    }
    
    .agent-detail-value {
        font-size: 14px;
    }
}
