/* Modern styling for create-deal page */

/* Container styling */
.formContainer {
    max-width: 780px; /* Consistent with create-deal-form */
    margin: 30px auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.header h2 {
    margin: 0;
    color: #2b79c2;
    text-align: center;
    font-size: 28px;
}

.back-button {
    position: absolute;
    left: 0;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
}

/* Search container */
.search-container {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.search-box:focus-within {
    border-color: #2b79c2;
    box-shadow: 0 2px 12px rgba(43, 121, 194, 0.1);
}

.search-icon {
    color: #6c757d;
    margin-right: 10px;
    margin-left: 5px;
}

#searchTerm {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 10px;
    font-size: 16px;
    outline: none;
    width: 100%;
    margin-top:10px;
}

.search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.search-tip {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

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

.results-headline {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.search-term {
    color: #2b79c2;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.result-block {
    position: relative;
    width: 300px;
    min-height: 200px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.result-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.result-block h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    /*color: #2b79c2; */
    text-align: left;
}

.profile-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    border-radius: 50%;
}

.result-block p {
    margin: 0px 0;
    color: #555;
    font-size: 14px;
}

.result-block a {
    color: #2b79c2;
    text-decoration: none;
}

.result-block a:hover {
    text-decoration: underline;
}

.address-title {
    font-weight: 600;
    margin-top: 12px;
    color: #444;
}

.address-line {
    margin-left: 0;
    margin-top: 2px;
    color: #666;
}

/* Select contact button positioning */
.select-contact-btn {
    position: absolute !important;
    bottom: 15px;
    right: 15px;
}

/* Empty state and loading styles */
.empty-state, .loading, .start-search, .error-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    color: #666;
    margin: 30px auto;
    max-width: 500px;
}

.empty-state h3, .error-message h3 {
    color: #555;
    margin-bottom: 10px;
}

.loading img {
    margin-bottom: 15px;
}

.start-search svg {
    margin-bottom: 15px;
    opacity: 0.7;
}

.error-message {
    border-left: 4px solid #dc3545;
    background-color: #fff8f8;
}

.retry-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
}

/* Added styling for contact search results */

/* Style to reduce default div margins for address lines */
.address-block div.address-result { /* Target divs with the new class */
	margin-bottom: 2px; /* Reduce space between address lines */
	line-height: 1.3; /* Adjust line height if needed */
}
.address-title {
	 margin-bottom: 4px; /* Space above the first address line */
	 font-weight: 500; /* Slightly bolder */
	 color: #555;
}
/* Styles for Indentation and Font Size */
.contact-details {
	padding-left: 0px; /* Indent the details */
	font-size: 0.9em; /* Slightly smaller font size */
	margin-top: 5px; /* Add a little space below the name */
	color: #333; /* Optional: Adjust text color */
}
.contact-details p {
	margin-bottom: 0px; /* Reduce space between email/phone */
}
.contact-details .address-block {
	 margin-top: 8px; /* Add space before the address block */
}
/* Optional: Add specific styles for .address-result if needed */
.address-result { margin-left: 10px; font-size:12px; } */

/* Responsive styling */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        padding: 10px;
    }
    
    .search-icon {
        display: none;
    }
    
    #searchTerm {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .search-button {
        width: 100%;
    }
    
    .result-block {
        width: 100%;
    }
}