/* Enquiry Dropdown Styles */

/* Container for the dropdown */
.enquiry-dropdown-container {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin-top: -1px; /* Overlap with row border */
}

/* Dropdown card style */
.enquiry-dropdown {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

/* Arrow indicator - position near the E button */
.enquiry-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 60px; /* Position near the E button on the right */
    width: 16px;
    height: 16px;
    background: #1e293b;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
}

/* Alternative arrow positioning using CSS variable */
.enquiry-dropdown[style*="--arrow-position"]::before {
    left: var(--arrow-position);
    right: auto;
    transform: translateX(-50%) rotate(45deg);
}

/* Dropdown header */
.enquiry-dropdown-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.enquiry-dropdown-header h4 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enquiry-dropdown-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.enquiry-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Dropdown body */
.enquiry-dropdown-body {
    padding: 1.25rem;
}

.enquiry-domain-info {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.enquiry-domain-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.enquiry-domain-name {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #fb923c;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

/* Form styles */
.enquiry-dropdown-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.enquiry-dropdown-form textarea:focus {
    outline: none;
    border-color: #f97316;
    background: rgba(0, 0, 0, 0.4);
}

.enquiry-dropdown-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.enquiry-dropdown-form label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Buttons */
.enquiry-dropdown-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.enquiry-dropdown-submit {
    background: #f97316;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.enquiry-dropdown-submit:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.enquiry-dropdown-cancel {
    background: rgba(107, 114, 128, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.enquiry-dropdown-cancel:hover {
    background: rgba(107, 114, 128, 0.4);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown row styling */
#enquiry-dropdown-row {
    background: transparent !important;
}

#enquiry-dropdown-row td {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    border-top: none !important;
    background: transparent !important;
}

/* Ensure dropdown stays within viewport */
.enquiry-dropdown-container {
    padding: 0 15px;
}

/* Position relative for parent row */
.domain-row-with-dropdown {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enquiry-dropdown-container {
        padding: 0 10px;
    }
    
    .enquiry-dropdown::before {
        right: 40px;
    }
}

/* Overlay for mobile */
@media (max-width: 640px) {
    .enquiry-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .enquiry-dropdown-container {
        position: static;
        width: 100%;
        max-width: 400px;
    }
    
    .enquiry-dropdown::before {
        display: none;
    }
}