/* Project Details Page Styles */

/* Field Help Text Styles */
.field-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Additional project-specific styles */
.project-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    border-radius: 12px;
}

.client-info-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.client-info-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-contact-info p {
    margin: 8px 0;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #555;
}

/* Client Rating and Location Styles */
.client-rating-location {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    justify-content: center;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: #dc3545;
    font-family: "DM Sans", sans-serif;
}

.rating-max {
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    font-family: "DM Sans", sans-serif;
}

.client-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
}

.client-location i {
    color: #dc3545;
    font-size: 12px;
}

/* Loading Button Styles */
.btn-spinner {
    display: none;
    margin-right: 8px;
}

.btn-spinner i {
    font-size: 14px;
    color: currentColor;
    animation: spin 1s linear infinite;
}

.cta-button {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.cta-button:disabled {
    pointer-events: none;
}

.cta-button.warning {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button.warning:hover {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.setup-info {
    margin-top: 8px;
    text-align: center;
}

.setup-info small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.setup-info i {
    color: #ff6b35;
    margin-right: 4px;
}

.btn-text,
.btn-icon {
    transition: all 0.2s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Smooth loading state transition */
.cta-button.loading {
    transform: scale(0.98);
}

/* Custom Select2 Styling */
.select2-container--classic {
    font-family: "DM Sans", sans-serif;
}

.select2-container--classic .select2-selection--single {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px;
    height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--classic .select2-selection--single:hover {
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15) !important;
    transform: translateY(-1px);
}

.select2-container--classic.select2-container--focus
    .select2-selection--single {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    outline: none;
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__rendered {
    color: #495057 !important;
    font-weight: 500;
    line-height: 44px;
    padding-left: 16px;
    padding-right: 40px;
    font-size: 14px;
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__placeholder {
    color: #6c757d !important;
    font-weight: 400;
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__clear {
    color: #dc3545 !important;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__clear:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.1);
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__arrow {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: none !important;
    border-left: 2px solid #e9ecef !important;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    height: 44px;
    width: 32px;
    top: 2px;
    right: 2px;
    transition: all 0.3s ease;
}

.select2-container--classic.select2-container--open
    .select2-selection--single
    .select2-selection__arrow {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-left-color: #007bff !important;
}

.select2-container--classic
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #6c757d transparent transparent transparent !important;
    border-width: 6px 5px 0 5px;
    transition: all 0.3s ease;
}

.select2-container--classic.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: transparent transparent #ffffff transparent;
    border-width: 0 5px 6px 5px;
}

.select2-container--classic .select2-dropdown {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--classic .select2-search--dropdown {
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.select2-container--classic
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.select2-container--classic .select2-results__option {
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.select2-container--classic .select2-results__option:last-child {
    border-bottom: none;
}

.select2-container--classic .select2-results__option:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #007bff;
    transform: translateX(4px);
}

.select2-container--classic
    .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    font-weight: 500;
}

.select2-container--classic .select2-results__option[aria-disabled="true"] {
    color: #6c757d;
    background: #f8f9fa;
    cursor: not-allowed;
}

.select2-container--classic .select2-results__group {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

/* Loading state for Select2 */
.select2-container--classic.select2-container--loading
    .select2-selection--single {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.7;
}

.select2-container--classic.select2-container--loading
    .select2-selection--single::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 40px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: select2-spin 1s linear infinite;
}

@keyframes select2-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-price-section {
        position: static;
        width: 100%;
        margin-top: 20px;
        right: auto;
    }

    .client-info-item {
        align-items: center;
        text-align: center;
    }

    .btn-spinner i {
        font-size: 12px;
    }

    .client-rating-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rating-display {
        font-size: 14px;
    }

    .rating-number {
        font-size: 14px;
    }

    .rating-max {
        font-size: 12px;
    }

    .client-location {
        font-size: 13px;
    }

    .select2-container--classic .select2-selection--single {
        height: 44px;
    }

    .select2-container--classic
        .select2-selection--single
        .select2-selection__rendered {
        line-height: 40px;
        padding-left: 12px;
        font-size: 13px;
    }

    .select2-container--classic
        .select2-selection--single
        .select2-selection__arrow {
        height: 40px;
        width: 28px;
    }

    .select2-container--classic .select2-results__option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.setup-info {
    text-align: left;
    color: #ffffff;
}

.setup-info small {
    color: #ffffff;
}
